diff options
Diffstat (limited to 'bin/reduceOverlap.js')
-rwxr-xr-x | bin/reduceOverlap.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reduceOverlap.js b/bin/reduceOverlap.js index c5da852..62ba10d 100755 --- a/bin/reduceOverlap.js +++ b/bin/reduceOverlap.js @@ -41,7 +41,7 @@ const index = new Transform({ sourceCount++ if (!argv.quiet) { - if (sourceCount % 10000 === 0) { + if (process.stdout.isTTY && sourceCount % 10000 === 0) { process.stdout.write(` ${sourceCount / 1000}k\r`) } } @@ -67,7 +67,7 @@ const reduce = new Transform({ transform(key, encoding, callback) { reduceIndex++ if (!argv.quiet) { - if (reduceIndex % 10000 === 0) { + if (process.stdout.isTTY && reduceIndex % 10000 === 0) { process.stdout.write(` ${reduceIndex / 1000}k / ${Math.round(sourceCount / 1000)}k (${Math.round(reduceIndex / sourceCount * 100)}%)\r`) } } |