Changeset 8272


Ignore:
Timestamp:
Apr 22, 2009, 8:40:07 PM (12 years ago)
Author:
charles
Message:

(1.5x clutch) #2003: rounding error causes web client to report 100% before done

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5x/web/javascript/torrent.js

    r6809 r8272  
    136136        },
    137137        getPercentDoneStr: function() {
    138                 return Math.ratio( 100 * ( this._sizeWhenDone - this._leftUntilDone ),
    139                                            this._sizeWhenDone );
     138                return Math.ratio( 10000 * ( this._sizeWhenDone - this._leftUntilDone ),
     139                                             this._sizeWhenDone ) / 100.0;
    140140        },
    141141        size: function() { return this._size; },
Note: See TracChangeset for help on using the changeset viewer.