trim the trim variable so there is no decimal point

This commit is contained in:
Damien Churchill 2009-07-15 18:54:58 +00:00
commit 2450599789

View file

@ -93,6 +93,7 @@ Deluge.Formatters = {
*/ */
timeRemaining: function(time) { timeRemaining: function(time) {
if (time == 0) { return '∞' } if (time == 0) { return '∞' }
time = time.toFixed(0);
if (time < 60) { return time + 's'; } if (time < 60) { return time + 's'; }
else { time = time / 60; } else { time = time / 60; }