X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FrebuildImages.php;h=2842b4022bb24525941f3806ace096c3ae999661;hb=51491c785b688a63949d0500703e38b95700d948;hp=7e3d8c4048443a17258b255b5a41b7d6151b2618;hpb=5d6c49f17afc0c593f73e09fb4516867e715f02f;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildImages.php b/maintenance/rebuildImages.php index 7e3d8c4048..2842b4022b 100644 --- a/maintenance/rebuildImages.php +++ b/maintenance/rebuildImages.php @@ -1,6 +1,6 @@ processed = 0; $this->updated = 0; $this->count = $count; - $this->startTime = wfTime(); + $this->startTime = microtime( true ); $this->table = $table; } @@ -99,7 +104,7 @@ class ImageBuilder extends Maintenance { $portion = $this->processed / $this->count; $updateRate = $this->updated / $this->processed; - $now = wfTime(); + $now = microtime( true ); $delta = $now - $this->startTime; $estimatedTotalTime = $delta / $portion; $eta = $this->startTime + $estimatedTotalTime;