From: Stéphane Jacob Date: Tue, 2 Nov 2010 19:08:09 +0000 (+0100) Subject: Shows progress after every geocoding. X-Git-Tag: xorg/1.0.2~160 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=0db1ca6d10e68811e0750e42c531aa161bf04965;p=platal.git Shows progress after every geocoding. Signed-off-by: Stéphane Jacob --- diff --git a/upgrade/1.0.1/merge_issues_geocoding.php b/upgrade/1.0.1/merge_issues_geocoding.php index 8ec2ba3..f274e43 100755 --- a/upgrade/1.0.1/merge_issues_geocoding.php +++ b/upgrade/1.0.1/merge_issues_geocoding.php @@ -18,7 +18,6 @@ $it = XDB::rawIterator('SELECT * ORDER BY pid, jobid, type, id'); $total = $it->total(); $i = 0; -$j = 0; printf("\r%u / %u", $i, $total); $pid = 0; $jobid = 0; @@ -34,13 +33,8 @@ while ($item = $it->next()) { } ++$i; - ++$j; - if ($j == 10) { - $j = 0; - printf("\r%u / %u", $i, $total); - } + printf("\r%u / %u", $i, $total); } -printf("\r%u / %u", $i, $total); print "\nGeocoding done.\n\n"; print "That's all folks!\n";