diff --git a/lib/node-progress.js b/lib/node-progress.js index 8eb0740..c77c80d 100644 --- a/lib/node-progress.js +++ b/lib/node-progress.js @@ -89,7 +89,7 @@ ProgressBar.prototype.tick = function(len, tokens){ if (tokens) this.tokens = tokens; // start time for eta - if (0 == this.curr) this.start = new Date; + if (!this.start) this.start = new Date; this.curr += len