X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FrebuildImages.php;h=2842b4022bb24525941f3806ace096c3ae999661;hb=51491c785b688a63949d0500703e38b95700d948;hp=936efd7f042477536d7b1e8c6f6b1aa93d5e1d17;hpb=4fe77dd5d61c53eefb23df1286b536764eaf6054;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildImages.php b/maintenance/rebuildImages.php index 936efd7f04..2842b4022b 100644 --- a/maintenance/rebuildImages.php +++ b/maintenance/rebuildImages.php @@ -30,7 +30,7 @@ * @ingroup Maintenance */ -require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +require_once( __DIR__ . '/Maintenance.php' ); /** * Maintenance script to update image metadata records. @@ -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;