mirror of
https://github.com/transmission/transmission.git
synced 2026-04-28 04:34:02 +01:00
(trunk web) #2992: "web client reports ratios of -1 and -2" -- fixed in trunk for 1.92. Thanks to Longinus00 for the patch.
This commit is contained in:
@@ -551,7 +551,12 @@ Torrent.prototype =
|
||||
c += ', uploaded ';
|
||||
c += Math.formatBytes( this._upload_total );
|
||||
c += ' (Ratio ';
|
||||
c += Math.round(this._upload_ratio*100)/100;
|
||||
if(this._upload_ratio > -1)
|
||||
c += Math.round(this._upload_ratio*100)/100;
|
||||
else if(this._upload_ratio == -2)
|
||||
c += 'Inf';
|
||||
else
|
||||
c += '0';
|
||||
c += ')';
|
||||
progress_details = c;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user