aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAndrew Harvey <andrew@alantgeo.com.au>2021-05-23 22:52:51 +1000
committerAndrew Harvey <andrew@alantgeo.com.au>2021-05-23 22:52:51 +1000
commite3d3de6853aa24318fba13eadf6b87b0768b5923 (patch)
treeebe2224eefd740fe002916cc7b331263dbf6e880 /bin
parentbb80fafe08e5fd97f51d50f34d1fc91cc0dd1ced (diff)
log progress
Diffstat (limited to 'bin')
-rwxr-xr-xbin/conflate.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/conflate.js b/bin/conflate.js
index 6a9e036..e6fedd1 100755
--- a/bin/conflate.js
+++ b/bin/conflate.js
@@ -241,7 +241,7 @@ pipeline(
osmAddrPolygonIndex++
if (process.stdout.isTTY && osmAddrPolygonIndex % 1000 === 0) {
- process.stdout.write(` ${osmAddrPolygonIndex.toLocaleString()}\r`)
+ process.stdout.write(` ${osmAddrPolygonIndex.toLocaleString()} of ${osmAddrPolygons.length.toLocaleString()} (${Math.round(osmAddrPolygonIndex / osmAddrPolygons.length * 100)}%)\r`)
}
// find the blocks it might intersect