r75467 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75466‎ | r75467 | r75468 >
Date:20:16, 26 October 2010
Author:hashar
Status:ok
Tags:
Comment:
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.
Modified paths:
  • /trunk/phase3/maintenance/benchmarks/Benchmarker.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/benchmarks/Benchmarker.php
@@ -22,7 +22,7 @@
2323
2424 public function bench( array $benchs ) {
2525 $bench_number = 0;
26 - $count = $this->getOption( 'count' );
 26+ $count = $this->getOption( 'count', 100 );
2727
2828 foreach( $benchs as $bench ) {
2929 // handle empty args

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r75446Follow up r75429 : benchmark for wfIsWindows();...hashar17:21, 26 October 2010

Status & tagging log