diff options
author | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-25 00:13:32 +1000 |
---|---|---|
committer | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-25 00:13:32 +1000 |
commit | aaa6e040482b1afd5b2485ef91e49026f610c81c (patch) | |
tree | db50494f11d1eefbdab732d8ba2a0f47d6f112c0 /bin | |
parent | e3d3de6853aa24318fba13eadf6b87b0768b5923 (diff) |
more frequent status updates
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/conflate.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/conflate.js b/bin/conflate.js index e6fedd1..5467231 100755 --- a/bin/conflate.js +++ b/bin/conflate.js @@ -123,7 +123,7 @@ const conflate = new Transform({ transform(feature, encoding, callback) { sourceCount++ - if (process.stdout.isTTY && sourceCount % 10000 === 0) { + if (process.stdout.isTTY && sourceCount % 1000 === 0) { process.stdout.write(` ${sourceCount.toLocaleString()}\r`) } @@ -240,7 +240,7 @@ pipeline( for (const osmAddrPolygon of osmAddrPolygons) { osmAddrPolygonIndex++ - if (process.stdout.isTTY && osmAddrPolygonIndex % 1000 === 0) { + if (process.stdout.isTTY && osmAddrPolygonIndex % 100 === 0) { process.stdout.write(` ${osmAddrPolygonIndex.toLocaleString()} of ${osmAddrPolygons.length.toLocaleString()} (${Math.round(osmAddrPolygonIndex / osmAddrPolygons.length * 100)}%)\r`) } |