Darkdadaah has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/92927


Change subject: Progress stats on a single line for articles_list.pl
......................................................................

Progress stats on a single line for articles_list.pl

Change-Id: I5889edadc03b75fd048060ca96703da1e09f8932
---
M scripts/articles_list.pl
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/wiktionary/anagrimes 
refs/changes/27/92927/1

diff --git a/scripts/articles_list.pl b/scripts/articles_list.pl
index ba5824f..0c9485f 100755
--- a/scripts/articles_list.pl
+++ b/scripts/articles_list.pl
@@ -295,6 +295,7 @@
        }
 }
 
+$|=1;
 while(<DUMP>) {
        if ( /<title>(.+?)<\/title>/ ) {
                $title = $1 ;
@@ -399,11 +400,13 @@
                        }
                        ######################################
                        $n++ ;
-                       print STDERR "[$n] [$count->{Count}] $title\n" if 
$n%1000==0;
+                       print STDERR "[$n] [$count->{Count}] $title             
              \r" if $n%1000==0;
                }
                $complete_article = 0 ;
        }
 }
+$|=0;
+print STDERR "\n";
 close(DUMP) ;
 
 print STDERR "Total = $n\n" ;

-- 
To view, visit https://gerrit.wikimedia.org/r/92927
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5889edadc03b75fd048060ca96703da1e09f8932
Gerrit-PatchSet: 1
Gerrit-Project: wiktionary/anagrimes
Gerrit-Branch: master
Gerrit-Owner: Darkdadaah <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to