mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
trim the trim variable so there is no decimal point
This commit is contained in:
parent
929a501453
commit
2450599789
1 changed files with 1 additions and 0 deletions
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue