We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 191256e commit 8f110feCopy full SHA for 8f110fe
1 file changed
lib/node-progress.js
@@ -126,7 +126,7 @@ ProgressBar.prototype.render = function (tokens) {
126
var ratio = this.curr / this.total;
127
ratio = Math.min(Math.max(ratio, 0), 1);
128
129
- var percent = ratio * 100;
+ var percent = Math.floor(ratio * 100);
130
var incomplete, complete, completeLength;
131
var elapsed = new Date - this.start;
132
var eta = (percent == 100) ? 0 : elapsed * (this.total / this.curr - 1);
0 commit comments