From: Antoine Musso Date: Tue, 26 Oct 2010 20:16:19 +0000 (+0000) Subject: Follow up r75446 : use a default for --count X-Git-Tag: 1.31.0-rc.0~34290 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=996771f4753e08224a52fb146b9c76ed72458c1d;p=lhc%2Fweb%2Fwiklou.git 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. --- 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