diff options
author | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-19 22:37:38 +1000 |
---|---|---|
committer | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-19 22:37:38 +1000 |
commit | 97202abac508808ee5d83d843515cdc44b133896 (patch) | |
tree | 7a74b95dda25fa4e2b383a8f704873e7e8e2be1d /bin/vicmap2osm.js | |
parent | c4c6fa091514682cbf2ccbd43d4bb4f48e2345d0 (diff) |
fix vicmap2osm progress indicator
Diffstat (limited to 'bin/vicmap2osm.js')
-rwxr-xr-x | bin/vicmap2osm.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/vicmap2osm.js b/bin/vicmap2osm.js index bac3144..954fdff 100755 --- a/bin/vicmap2osm.js +++ b/bin/vicmap2osm.js @@ -40,6 +40,8 @@ const transform = new Transform({ readableObjectMode: true, writableObjectMode: true, transform(feature, encoding, callback) { + sourceCount++ + if (!argv.quiet) { if (process.stdout.isTTY && sourceCount % 10000 === 0) { process.stdout.write(` ${sourceCount / 1000}k\r`) |