From e3d3de6853aa24318fba13eadf6b87b0768b5923 Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Sun, 23 May 2021 22:52:51 +1000 Subject: log progress --- bin/conflate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/conflate.js') 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 -- cgit v1.2.3