From 0db1ca6d10e68811e0750e42c531aa161bf04965 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Tue, 2 Nov 2010 20:08:09 +0100 Subject: [PATCH] Shows progress after every geocoding. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- upgrade/1.0.1/merge_issues_geocoding.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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"; -- 2.1.4