projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cee9964
)
Shows progress after every geocoding.
author
Stéphane Jacob
<sj@m4x.org>
Tue, 2 Nov 2010 19:08:09 +0000
(20:08 +0100)
committer
Sté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
patch
|
blob
|
blame
|
history
diff --git
a/upgrade/1.0.1/merge_issues_geocoding.php
b/upgrade/1.0.1/merge_issues_geocoding.php
index
8ec2ba3
..
f274e43
100755
(executable)
--- 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";