r20783 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r20782‎ | r20783 | r20784 >
Date:18:49, 28 March 2007
Author:river
Status:old
Tags:
Comment:
this would be less silly if it used 2 dp
Modified paths:
  • /trunk/phase3/maintenance/importDump.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/importDump.php
@@ -69,8 +69,8 @@
7070 if( $this->reporting ) {
7171 $delta = wfTime() - $this->startTime;
7272 if( $delta ) {
73 - $rate = $this->pageCount / $delta;
74 - $revrate = $this->revCount / $delta;
 73+ $rate = sprintf("%.2f", $this->pageCount / $delta);
 74+ $revrate = sprintf("%.2f", $this->revCount / $delta);
7575 } else {
7676 $rate = '-';
7777 $revrate = '-';