mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 04:18:39 +00:00
(trunk web) seedRatioLimit > seedRatio
This commit is contained in:
@@ -205,9 +205,9 @@ Torrent.prototype =
|
||||
this.fileList().show();
|
||||
},
|
||||
hideFileList: function() { this.fileList().hide(); },
|
||||
seedRatio: function(){
|
||||
seedRatioLimit: function(){
|
||||
switch( this._seed_ratio_mode ) {
|
||||
case Torrent._RatioUseGlobal: return this._controller.seedRatio();
|
||||
case Torrent._RatioUseGlobal: return this._controller.seedRatioLimit();
|
||||
case Torrent._RatioUseLocal: return this._seed_ratio_limit;
|
||||
default: return -1;
|
||||
}
|
||||
@@ -463,9 +463,9 @@ Torrent.prototype =
|
||||
|
||||
var status = this.isActive() ? 'complete' : 'complete_stopped';
|
||||
|
||||
if(this.isActive() && this.seedRatio() > 0){
|
||||
if(this.isActive() && this.seedRatioLimit() > 0){
|
||||
status = 'complete seeding'
|
||||
var seedRatioRatio = this._upload_ratio / this.seedRatio();
|
||||
var seedRatioRatio = this._upload_ratio / this.seedRatioLimit();
|
||||
var seedRatioPercent = Math.round( seedRatioRatio * 100 * MaxBarWidth ) / 100;
|
||||
|
||||
root._progress_incomplete_container.className = 'torrent_progress_bar incomplete seeding'
|
||||
|
||||
Reference in New Issue
Block a user