status-bar
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -58,3 +58,2 @@ "use strict"; | ||
if (s >= 3600) return " > 1h"; | ||
var str; | ||
var min = Math.floor (s/60); | ||
@@ -96,3 +95,3 @@ var sec = Math.floor (s%60); | ||
this._current = 0; | ||
this._total = ~~options.total; | ||
this._total = Math.floor (options.total); | ||
this._onRenderTimer = null; | ||
@@ -240,3 +239,3 @@ this._elapsedTimer = null; | ||
this._stats.remainingTime = | ||
Math.floor (this._stats.remainingSize/avgSpeed) + 1 | ||
Math.floor (this._stats.remainingSize/avgSpeed) + 1; | ||
} | ||
@@ -243,0 +242,0 @@ } |
{ | ||
"name": "status-bar", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "A status bar for file transfers", | ||
@@ -5,0 +5,0 @@ "keywords": ["status", "bar", "file", "transfer", "speed", "progress", |
@@ -37,3 +37,3 @@ status-bar | ||
}).on ("error", function (error){ | ||
bar.cancel (); | ||
if (bar) bar.cancel (); | ||
console.error (error); | ||
@@ -40,0 +40,0 @@ }); |
16387
202