* @ingroup Maintenance
*/
class BackupReader extends Maintenance {
- var $reportingInterval = 100;
- var $pageCount = 0;
- var $revCount = 0;
- var $dryRun = false;
- var $uploads = false;
- var $imageBasePath = false;
- var $nsFilter = false;
+ public $reportingInterval = 100;
+ public $pageCount = 0;
+ public $revCount = 0;
+ public $dryRun = false;
+ public $uploads = false;
+ public $imageBasePath = false;
+ public $nsFilter = false;
function __construct() {
parent::__construct();
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 );
}
function importFromHandle( $handle ) {
- $this->startTime = wfTime();
+ $this->startTime = microtime( true );
$source = new ImportStreamSource( $handle );
$importer = new WikiImporter( $source );