Shows progress after every geocoding.
authorStéphane Jacob <sj@m4x.org>
Tue, 2 Nov 2010 19:08:09 +0000 (20:08 +0100)
committerStéphane Jacob <sj@m4x.org>
Tue, 2 Nov 2010 19:08:09 +0000 (20:08 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
upgrade/1.0.1/merge_issues_geocoding.php

index 8ec2ba3..f274e43 100755 (executable)
@@ -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";