aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/php/PhpBenchmark.php
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/php/PhpBenchmark.php')
-rw-r--r--benchmarks/php/PhpBenchmark.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/php/PhpBenchmark.php b/benchmarks/php/PhpBenchmark.php
index 9c1132d07..722063876 100644
--- a/benchmarks/php/PhpBenchmark.php
+++ b/benchmarks/php/PhpBenchmark.php
@@ -62,7 +62,7 @@ class Benchmark
$t = $this->runBenchmarkWithTimes(1);
$times = ceil($this->benchmark_time / $t);
return $this->total_bytes * $times /
- $this->runBenchmarkWithTimes($times) *
+ ($times == 1 ? $t : $this->runBenchmarkWithTimes($times)) *
$this->coefficient;
}