From 996771f4753e08224a52fb146b9c76ed72458c1d Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 26 Oct 2010 20:16:19 +0000 Subject: [PATCH] Follow up r75446 : use a default for --count This also fix a division per zero error since $count was 0 and used to calculate average time. --- maintenance/benchmarks/Benchmarker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/benchmarks/Benchmarker.php b/maintenance/benchmarks/Benchmarker.php index 9149ea2d09..9a9b53351f 100644 --- a/maintenance/benchmarks/Benchmarker.php +++ b/maintenance/benchmarks/Benchmarker.php @@ -22,7 +22,7 @@ abstract class Benchmarker extends Maintenance { public function bench( array $benchs ) { $bench_number = 0; - $count = $this->getOption( 'count' ); + $count = $this->getOption( 'count', 100 ); foreach( $benchs as $bench ) { // handle empty args -- 2.20.1