X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrebuildImages.php;h=2842b4022bb24525941f3806ace096c3ae999661;hb=86a180097bbe38cc314798b48a5a8b8e70566273;hp=f5d06e4620ae7ea1be8d157ff0ce52873f64e271;hpb=67bfdc7a68940d901e585eadd984a2074bf0216a;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildImages.php b/maintenance/rebuildImages.php index f5d06e4620..2842b4022b 100644 --- a/maintenance/rebuildImages.php +++ b/maintenance/rebuildImages.php @@ -91,7 +91,7 @@ class ImageBuilder extends Maintenance { $this->processed = 0; $this->updated = 0; $this->count = $count; - $this->startTime = wfTime(); + $this->startTime = microtime( true ); $this->table = $table; } @@ -104,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;