Skip to content

Commit

Permalink
Merge pull request phacility#74 from negram/increase-timer-tolerance
Browse files Browse the repository at this point in the history
Increase tolerance to latencies
  • Loading branch information
longxinH authored Dec 14, 2022
2 parents 41c5735 + 3e94a64 commit df62489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/tests/xhprof_005.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ function verify($expected, $actual, $description) {

echo "Verifying {$description}...\n";

// 25% tolerance
// 25% tolerance (+ 1.5msec for slow builds)
$range_low = ($expected * 0.75);
$range_high = ($expected * 1.25);
$range_high = ($expected * 1.25) + 1500;

if (($actual < $range_low) ||
($actual > $range_high)) {
Expand Down

0 comments on commit df62489

Please sign in to comment.