Changeset 10296


Ignore:
Timestamp:
Feb 28, 2010, 2:31:45 PM (12 years ago)
Author:
charles
Message:

(trunk web) #2992: "web client reports ratios of -1 and -2" -- fixed in trunk for 1.92. Thanks to Longinus00 for the patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/javascript/torrent.js

    r10216 r10296  
    552552                        c += Math.formatBytes( this._upload_total );
    553553                        c += ' (Ratio ';
    554                         c += Math.round(this._upload_ratio*100)/100;
     554                        if(this._upload_ratio > -1)
     555                                c += Math.round(this._upload_ratio*100)/100;
     556                        else if(this._upload_ratio == -2)
     557                                c += 'Inf';
     558                        else
     559                                c += '0';
    555560                        c += ')';
    556561                        progress_details = c;
Note: See TracChangeset for help on using the changeset viewer.