]> granicus.if.org Git - transmission/commitdiff
(trunk web) seedRatioLimit > seedRatio
authorKevin Glowacz <kevin@glowacz.info>
Tue, 28 Jul 2009 05:23:34 +0000 (05:23 +0000)
committerKevin Glowacz <kevin@glowacz.info>
Tue, 28 Jul 2009 05:23:34 +0000 (05:23 +0000)
web/javascript/torrent.js
web/javascript/transmission.js

index dbca735537a51cf466d2dc52f78e9d0f87c4ef03..a78ec018065b045188e0dca606419a0684a547c7 100644 (file)
@@ -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'
index 8273ecd2f4cf07675b4f984f555707b6adef4772..317dee9ecff2aba6158c7ca987fcd54ae5e4c727 100644 (file)
@@ -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