Changeset 8858
- Timestamp:
- Jul 28, 2009, 5:23:34 AM (13 years ago)
- Location:
- trunk/web/javascript
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/javascript/torrent.js
r8854 r8858 206 206 }, 207 207 hideFileList: function() { this.fileList().hide(); }, 208 seedRatio : function(){208 seedRatioLimit: function(){ 209 209 switch( this._seed_ratio_mode ) { 210 case Torrent._RatioUseGlobal: return this._controller.seedRatio ();210 case Torrent._RatioUseGlobal: return this._controller.seedRatioLimit(); 211 211 case Torrent._RatioUseLocal: return this._seed_ratio_limit; 212 212 default: return -1; … … 464 464 var status = this.isActive() ? 'complete' : 'complete_stopped'; 465 465 466 if(this.isActive() && this.seedRatio () > 0){466 if(this.isActive() && this.seedRatioLimit() > 0){ 467 467 status = 'complete seeding' 468 var seedRatioRatio = this._upload_ratio / this.seedRatio ();468 var seedRatioRatio = this._upload_ratio / this.seedRatioLimit(); 469 469 var seedRatioPercent = Math.round( seedRatioRatio * 100 * MaxBarWidth ) / 100; 470 470 -
trunk/web/javascript/transmission.js
r8857 r8858 397 397 }, 398 398 399 seedRatio : function(){399 seedRatioLimit: function(){ 400 400 if(this._prefs && this._prefs['seedRatioLimited']) 401 401 return this._prefs['seedRatioLimit'];
Note: See TracChangeset
for help on using the changeset viewer.