X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FimportDump.php;h=f51d7ad73253d0df8ebbe30f924621be4fdb48f5;hb=51491c785b688a63949d0500703e38b95700d948;hp=b089f70a35fba27d5f30f041b381367d43044068;hpb=6112bf241de3fd7b1ff61929926304d87aee08fd;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/importDump.php b/maintenance/importDump.php index b089f70a35..f51d7ad732 100644 --- a/maintenance/importDump.php +++ b/maintenance/importDump.php @@ -208,7 +208,7 @@ TEXT; function showReport() { if ( !$this->mQuiet ) { - $delta = wfTime() - $this->startTime; + $delta = microtime( true ) - $this->startTime; if ( $delta ) { $rate = sprintf( "%.2f", $this->pageCount / $delta ); $revrate = sprintf( "%.2f", $this->revCount / $delta ); @@ -254,7 +254,7 @@ TEXT; } function importFromHandle( $handle ) { - $this->startTime = wfTime(); + $this->startTime = microtime( true ); $source = new ImportStreamSource( $handle ); $importer = new WikiImporter( $source );