summaryrefslogtreecommitdiff
path: root/maintenance/importDump.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/importDump.php')
-rw-r--r--maintenance/importDump.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/maintenance/importDump.php b/maintenance/importDump.php
index 22709f64..c7d36042 100644
--- a/maintenance/importDump.php
+++ b/maintenance/importDump.php
@@ -18,8 +18,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
- * @package MediaWiki
- * @subpackage Maintenance
+ * @addtogroup Maintenance
*/
$optionsWithArgs = array( 'report' );
@@ -48,8 +47,8 @@ class BackupReader {
$this->progress( "Got bogus revision with null title!" );
return;
}
- $display = $title->getPrefixedText();
- $timestamp = $rev->getTimestamp();
+ #$timestamp = $rev->getTimestamp();
+ #$display = $title->getPrefixedText();
#echo "$display $timestamp\n";
$this->revCount++;
@@ -70,8 +69,8 @@ class BackupReader {
if( $this->reporting ) {
$delta = wfTime() - $this->startTime;
if( $delta ) {
- $rate = $this->pageCount / $delta;
- $revrate = $this->revCount / $delta;
+ $rate = sprintf("%.2f", $this->pageCount / $delta);
+ $revrate = sprintf("%.2f", $this->revCount / $delta);
} else {
$rate = '-';
$revrate = '-';
@@ -137,7 +136,7 @@ if( WikiError::isError( $result ) ) {
} else {
echo "Done!\n";
echo "You might want to run rebuildrecentchanges.php to regenerate\n";
- echo "the recentchanges page.";
+ echo "the recentchanges page.\n";
}
?>