From 24505997897e2deeaa43d2a62575be4caac2d48c Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Wed, 15 Jul 2009 18:54:58 +0000 Subject: [PATCH] trim the trim variable so there is no decimal point --- deluge/ui/web/js/Deluge.Formatters.js | 1 + 1 file changed, 1 insertion(+) diff --git a/deluge/ui/web/js/Deluge.Formatters.js b/deluge/ui/web/js/Deluge.Formatters.js index 0c5f7d2e6..f8af86c53 100644 --- a/deluge/ui/web/js/Deluge.Formatters.js +++ b/deluge/ui/web/js/Deluge.Formatters.js @@ -93,6 +93,7 @@ Deluge.Formatters = { */ timeRemaining: function(time) { if (time == 0) { return '∞' } + time = time.toFixed(0); if (time < 60) { return time + 's'; } else { time = time / 60; }