From 03ff0005acc906318f65231616f8af6f70eef5c9 Mon Sep 17 00:00:00 2001 From: Kevin Glowacz Date: Tue, 28 Jul 2009 05:23:34 +0000 Subject: [PATCH] (trunk web) seedRatioLimit > seedRatio --- web/javascript/torrent.js | 8 ++++---- web/javascript/transmission.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/javascript/torrent.js b/web/javascript/torrent.js index dbca73553..a78ec0180 100644 --- a/web/javascript/torrent.js +++ b/web/javascript/torrent.js @@ -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' diff --git a/web/javascript/transmission.js b/web/javascript/transmission.js index 8273ecd2f..317dee9ec 100644 --- a/web/javascript/transmission.js +++ b/web/javascript/transmission.js @@ -396,7 +396,7 @@ Transmission.prototype = container.scrollTop( offsetTop + offsetHeight - innerHeight ); }, - seedRatio: function(){ + seedRatioLimit: function(){ if(this._prefs && this._prefs['seedRatioLimited']) return this._prefs['seedRatioLimit']; else