r10022 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10021‎ | r10022 | r10023 >
Date:03:05, 9 July 2005
Author:vibber
Status:old
Tags:
Comment:
can't believe i made this mistake twice... fix eta calculation
Modified paths:
  • /trunk/extensions/MWSearch/luceneUpdate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MWSearch/luceneUpdate.php
@@ -92,7 +92,7 @@
9393 $now = wfTime();
9494 $delta = $now - $this->startTime;
9595 $portion = $this->count / $this->max;
96 - $eta = $now + ($delta / $portion);
 96+ $eta = $this->startTime + ($delta / $portion);
9797 $rate = $this->count / $delta;
9898
9999 printf( "%s: %6.3f%% on %s, ETA %s [%d/%d] %.2f/sec\n",

Status & tagging log