X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FbackupTextPass.inc;h=0b8b3445586db82da6c504f08740de9ae4ac21c8;hb=efed0f97b8a4b4e9acceb069fdebf8af08d5f467;hp=84aac57f1200d30b1225215560bf6566f4ef6dda;hpb=a1607bf74e0364b1667f08797d487cb39d2166a9;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/backupTextPass.inc b/maintenance/backupTextPass.inc index 84aac57f12..0b8b344558 100644 --- a/maintenance/backupTextPass.inc +++ b/maintenance/backupTextPass.inc @@ -169,7 +169,7 @@ class TextPassDumper extends BackupDumper { $this->xmlwriterobj = new XmlDumpWriter(); $input = fopen( $this->input, "rt" ); - $result = $this->readDump( $input ); + $this->readDump( $input ); if ( $this->spawnProc ) { $this->closeSpawn(); @@ -247,9 +247,9 @@ class TextPassDumper extends BackupDumper { 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; @@ -294,7 +294,7 @@ class TextPassDumper extends BackupDumper { } function setTimeExceeded() { - $this->timeExceeded = True; + $this->timeExceeded = true; } function checkIfTimeExceeded() {