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 "Unit test for User::getEditCount"
[lhc/web/wiklou.git]
/
maintenance
/
backup.inc
diff --git
a/maintenance/backup.inc
b/maintenance/backup.inc
index
04c65ba
..
e3dc488
100644
(file)
--- a/
maintenance/backup.inc
+++ b/
maintenance/backup.inc
@@
-259,7
+259,7
@@
class BackupDumper {
$dbr = wfGetDB( DB_SLAVE );
}
$this->maxCount = $dbr->selectField( $table, "MAX($field)", '', __METHOD__ );
$dbr = wfGetDB( DB_SLAVE );
}
$this->maxCount = $dbr->selectField( $table, "MAX($field)", '', __METHOD__ );
- $this->startTime =
wfTime(
);
+ $this->startTime =
microtime( true
);
$this->lastTime = $this->startTime;
$this->ID = getmypid();
}
$this->lastTime = $this->startTime;
$this->ID = getmypid();
}
@@
-328,9
+328,9
@@
class BackupDumper {
function showReport() {
if ( $this->reporting ) {
$now = wfTimestamp( TS_DB );
function showReport() {
if ( $this->reporting ) {
$now = wfTimestamp( TS_DB );
- $nowts =
wfTime(
);
- $deltaAll =
wfTime()
- $this->startTime;
- $deltaPart =
wfTime()
- $this->lastTime;
+ $nowts =
microtime( true
);
+ $deltaAll =
$nowts
- $this->startTime;
+ $deltaPart =
$nowts
- $this->lastTime;
$this->pageCountPart = $this->pageCount - $this->pageCountLast;
$this->revCountPart = $this->revCount - $this->revCountLast;
$this->pageCountPart = $this->pageCount - $this->pageCountLast;
$this->revCountPart = $this->revCount - $this->revCountLast;