Changeset 8273


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

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

File:
1 edited

Legend:

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

    r8075 r8273  
    159159        },
    160160        getPercentDoneStr: function() {
    161                 return Math.ratio( 100 * ( this._sizeWhenDone - this._leftUntilDone ),
    162                                            this._sizeWhenDone );
     161                return Math.ratio( 10000 * ( this._sizeWhenDone - this._leftUntilDone ),
     162                                             this._sizeWhenDone ) / 100.0;
    163163        },
    164164        size: function() { return this._size; },
Note: See TracChangeset for help on using the changeset viewer.