aboutsummaryrefslogtreecommitdiff
path: root/bin/reduceOverlap.js
diff options
context:
space:
mode:
authorAndrew Harvey <andrew@alantgeo.com.au>2021-05-19 23:21:31 +1000
committerAndrew Harvey <andrew@alantgeo.com.au>2021-05-19 23:21:31 +1000
commit66ec9f9177a685129e917ff6bb8d503779c668f9 (patch)
tree1cf15607a3501cd8b2d07ca2beb679e3cabaa4be /bin/reduceOverlap.js
parenta7151f6a4c935971250684a94d4ee47dc5fda8af (diff)
log progress as actual number
Diffstat (limited to 'bin/reduceOverlap.js')
-rwxr-xr-xbin/reduceOverlap.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/reduceOverlap.js b/bin/reduceOverlap.js
index ae5f1dc..40b4708 100755
--- a/bin/reduceOverlap.js
+++ b/bin/reduceOverlap.js
@@ -46,7 +46,7 @@ const index = new Transform({
if (!argv.quiet) {
if (process.stdout.isTTY && sourceCount % 10000 === 0) {
- process.stdout.write(` ${sourceCount / 1000}k\r`)
+ process.stdout.write(` ${sourceCount.toLocaleString()}\r`)
}
}
@@ -72,7 +72,7 @@ const reduce = new Transform({
reduceIndex++
if (!argv.quiet) {
if (process.stdout.isTTY && reduceIndex % 10000 === 0) {
- process.stdout.write(` ${reduceIndex / 1000}k / ${Math.round(sourceCount / 1000)}k (${Math.round(reduceIndex / sourceCount * 100)}%)\r`)
+ process.stdout.write(` ${reduceIndex.toLocaleString()} / ${sourceCount.toLocaleString()} (${Math.round(reduceIndex / sourceCount * 100)}%)\r`)
}
}
@@ -185,7 +185,7 @@ const limitValues = new Transform({
limitValuesIndex++
if (!argv.quiet) {
if (limitValuesIndex % 10000 === 0) {
- process.stdout.write(` ${limitValuesIndex / 1000}k / ${Math.round(sourceCount / 1000)}k (${Math.round(limitValuesIndex / sourceCount * 100)}%)\r`)
+ process.stdout.write(` ${limitValuesIndex.toLocaleString()} / ${sourceCount.toLocaleString()} (${Math.round(limitValuesIndex / sourceCount * 100)}%)\r`)
}
}
this.push(valueLimits(feature))