r95290 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95289‎ | r95290 | r95291 >
Date:00:36, 23 August 2011
Author:ariel
Status:ok
Tags:
Comment:
fix timestamp stuff, more fallout from bad merge attempt
Modified paths:
  • /trunk/phase3/maintenance/dumpTextPass.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/dumpTextPass.php
@@ -181,6 +181,7 @@
182182
183183 if ( $this->reporting ) {
184184 $now = wfTimestamp( TS_DB );
 185+ $nowts = wfTime();
185186 $deltaAll = wfTime() - $this->startTime;
186187 $deltaPart = wfTime() - $this->lastTime;
187188 $this->pageCountPart = $this->pageCount - $this->pageCountLast;
@@ -221,7 +222,7 @@
222223 }
223224 $this->progress( sprintf( "%s: %s (ID %d) %d pages (%0.1f|%0.1f/sec all|curr), %d revs (%0.1f|%0.1f/sec all|curr), %0.1f%%|%0.1f%% prefetched (all|curr), ETA %s [max %d]",-
224225 $now, wfWikiID(), $this->ID, $this->pageCount, $pageRate, $pageRatePart, $this->revCount, $revRate, $revRatePart, $fetchRate, $fetchRatePart, $etats, $this->maxCount ) );
225 - $this->lastTime = $now;
 226+ $this->lastTime = $nowts;
226227 $this->revCountLast = $this->revCount;
227228 $this->prefetchCountLast = $this->prefetchCount;
228229 $this->fetchCountLast = $this->fetchCount;
@@ -233,6 +234,10 @@
234235 }
235236
236237 function checkIfTimeExceeded() {
 238+ $m1 = $this->maxTimeAllowed;
 239+ $m2 = $this->lastTime;
 240+ $m3 = $this->timeOfCheckpoint;
 241+ $m4 = $this->lastTime - $this->timeOfCheckpoint;
237242 if ( $this->maxTimeAllowed && ( $this->lastTime - $this->timeOfCheckpoint > $this->maxTimeAllowed ) ) {
238243 return True;
239244 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r96556MFT r95260, r95272, r95288, r95290, r95443, r95601, r95604, r95634, r95720, r...reedy12:28, 8 September 2011

Status & tagging log