dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add Special:Login and Special:Logout as aliases."
[lhc/web/wiklou.git]
/
maintenance
/
rebuildImages.php
diff --git
a/maintenance/rebuildImages.php
b/maintenance/rebuildImages.php
index
f5d06e4
..
53bf823
100644
(file)
--- a/
maintenance/rebuildImages.php
+++ b/
maintenance/rebuildImages.php
@@
-30,7
+30,7
@@
* @ingroup Maintenance
*/
* @ingroup Maintenance
*/
-require_once
( __DIR__ . '/Maintenance.php' )
;
+require_once
__DIR__ . '/Maintenance.php'
;
/**
* Maintenance script to update image metadata records.
/**
* 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->processed = 0;
$this->updated = 0;
$this->count = $count;
- $this->startTime =
wfTime(
);
+ $this->startTime =
microtime( true
);
$this->table = $table;
}
$this->table = $table;
}
@@
-104,7
+104,7
@@
class ImageBuilder extends Maintenance {
$portion = $this->processed / $this->count;
$updateRate = $this->updated / $this->processed;
$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;
$delta = $now - $this->startTime;
$estimatedTotalTime = $delta / $portion;
$eta = $this->startTime + $estimatedTotalTime;
@@
-217,4
+217,4
@@
class ImageBuilder extends Maintenance {
}
$maintClass = 'ImageBuilder';
}
$maintClass = 'ImageBuilder';
-require_once
( RUN_MAINTENANCE_IF_MAIN )
;
+require_once
RUN_MAINTENANCE_IF_MAIN
;