X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fbackup.inc;h=e3dc488b54429487bddd513c6a20a550969cd67b;hb=ad4ffa3fd59f40457464756c42adea7e245a14b5;hp=6eccb26a6bcf78b4f55f6404ca5d0999f0481737;hpb=7727f6633289f63e948c7dbe877d7f290398c472;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/backup.inc b/maintenance/backup.inc index 6eccb26a6b..e3dc488b54 100644 --- a/maintenance/backup.inc +++ b/maintenance/backup.inc @@ -28,7 +28,7 @@ * @ingroup Dump Maintenance */ class DumpDBZip2Output extends DumpPipeOutput { - function DumpDBZip2Output( $file ) { + function __construct( $file ) { parent::__construct( "dbzip2", $file ); } } @@ -259,7 +259,7 @@ class BackupDumper { $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(); } @@ -328,9 +328,9 @@ class BackupDumper { 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;