X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FcleanupTable.inc;h=57acfd8211223c80cce1869ebcc4f4f229b67dcb;hb=4cc5048ce11fef7f0983604f1f542fb3cce1a7f1;hp=898bdf497e5d82668cdcf7f4799033e92100a64b;hpb=558480e3ed462cd20ddc8b5fc8245bfd7b831772;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupTable.inc b/maintenance/cleanupTable.inc index 898bdf497e..57acfd8211 100644 --- a/maintenance/cleanupTable.inc +++ b/maintenance/cleanupTable.inc @@ -21,7 +21,7 @@ * @ingroup Maintenance */ -require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +require_once( __DIR__ . '/Maintenance.php' ); /** * Generic class to cleanup a database table. Already subclasses Maintenance. @@ -62,7 +62,7 @@ class TableCleanup extends Maintenance { $this->processed = 0; $this->updated = 0; $this->count = $count; - $this->startTime = wfTime(); + $this->startTime = microtime( true ); $this->table = $table; } @@ -75,7 +75,7 @@ class TableCleanup extends Maintenance { $portion = $this->processed / $this->count; $updateRate = $this->updated / $this->processed; - $now = wfTime(); + $now = microtime( true ); $delta = $now - $this->startTime; $estimatedTotalTime = $delta / $portion; $eta = $this->startTime + $estimatedTotalTime;