From aaa6e040482b1afd5b2485ef91e49026f610c81c Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Tue, 25 May 2021 00:13:32 +1000 Subject: more frequent status updates --- bin/conflate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/conflate.js') 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`) } -- cgit v1.2.3