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 @@
23
23
24
24
public function bench( array $benchs ) {
25
25
$bench_number = 0;
26
- $count = $this->getOption( 'count' );
26
+ $count = $this->getOption( 'count', 100 );
27
27
28
28
foreach( $benchs as $bench ) {
29
29
// handle empty args
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r75446
Follow up
r75429
: benchmark for wfIsWindows();...
hashar
17:21, 26 October 2010
Status & tagging log
07:03, 31 December 2010
Reedy
(
talk
|
contribs
)
changed the
status
of r75467
[
removed:
new
added:
ok]