We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 52173f0 + 8f110fe commit 30d70d9Copy full SHA for 30d70d9
lib/node-progress.js
@@ -128,7 +128,7 @@ ProgressBar.prototype.render = function (tokens) {
128
var ratio = this.curr / this.total;
129
ratio = Math.min(Math.max(ratio, 0), 1);
130
131
- var percent = ratio * 100;
+ var percent = Math.floor(ratio * 100);
132
var incomplete, complete, completeLength;
133
var elapsed = new Date - this.start;
134
var eta = (percent == 100) ? 0 : elapsed * (this.total / this.curr - 1);
0 commit comments