mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 04:18:39 +00:00
Hopefully put an end to all these percentage bugs in the web client
This commit is contained in:
@@ -158,8 +158,8 @@ Torrent.prototype =
|
||||
return ( this._sizeWhenDone - this._leftUntilDone ) / this._sizeWhenDone;
|
||||
},
|
||||
getPercentDoneStr: function() {
|
||||
return Math.ratio( 10000 * ( this._sizeWhenDone - this._leftUntilDone ),
|
||||
this._sizeWhenDone ) / 100.0;
|
||||
return Math.floor(100 * Math.ratio( 100 * ( this._sizeWhenDone - this._leftUntilDone ),
|
||||
this._sizeWhenDone )) / 100;
|
||||
},
|
||||
size: function() { return this._size; },
|
||||
state: function() { return this._state; },
|
||||
|
||||
Reference in New Issue
Block a user