Skip to content

Commit

Permalink
Bug fix time validations in benchmark class.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswsinc committed Mar 21, 2015
1 parent 42dadf6 commit 53a8f5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions html-compressor/includes/benchmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ public function add_time($function, $start_time, $task)
if(!($function = trim((string)$function)))
return; // Not possible.

if(!($start_time = (float)$start_time) <= 0)
if(($start_time = (float)$start_time) <= 0)
return; // Not possible.

if(!($end_time = (float)microtime(TRUE)) <= 0)
if(($end_time = (float)microtime(TRUE)) <= 0)
return; // Not possible.

if(!($task = trim((string)$task)))
Expand Down

0 comments on commit 53a8f5a

Please sign in to comment.