Restore clean, tail-friendly output
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 22 Dec 2005 06:48:42 +0000 (06:48 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 22 Dec 2005 06:48:42 +0000 (06:48 +0000)
maintenance/refreshLinks.inc

index 2cacdcb..feb91ef 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-require_once 'counter.php';
 /**
  * @todo document
  * @package MediaWiki
@@ -7,7 +6,7 @@ require_once 'counter.php';
  */
 
 /** */
-define( 'REPORTING_INTERVAL', 10 );
+define( "REPORTING_INTERVAL", 100 );
 
 function refreshLinks( $start, $newOnly = false, $maxLag = false ) {
        global $wgUser, $wgParser, $wgUseImageResize;
@@ -41,7 +40,7 @@ function refreshLinks( $start, $newOnly = false, $maxLag = false ) {
                $i = 0;
                while ( $row = $dbr->fetchObject( $res ) ) {
                        if ( !( ++$i % REPORTING_INTERVAL ) ) {
-                               print_c( $i - 1, $i );
+                               print "$i\n";
                                wfWaitForSlaves( $maxLag );
                        }
 
@@ -55,7 +54,7 @@ function refreshLinks( $start, $newOnly = false, $maxLag = false ) {
                for ($id = $start; $id <= $end; $id++) {
                        
                        if ( !($id % REPORTING_INTERVAL) ) {
-                               print_c(  $id - 1, $id );
+                               print "$id\n";
                                wfWaitForSlaves( $maxLag );
                        }
                        fixLinksFromArticle( $id );