From ab56257b499e1470b7bab29d3de6d7c9bd478675 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 8 Dec 2008 13:09:46 +0000 Subject: [PATCH] Fix typo in get_eta() stop_seed_ratio should be stop_ratio --- deluge/core/torrent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index e846c5835..bd84efe38 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -395,7 +395,7 @@ class Torrent: # We're a seed, so calculate the time to the 'stop_share_ratio' if not status.upload_payload_rate: return 0 - stop_ratio = self.config["stop_seed_ratio"] if self.config["stop_seed_at_ratio"] else self.options["stop_seed_ratio"] + stop_ratio = self.config["stop_seed_ratio"] if self.config["stop_seed_at_ratio"] else self.options["stop_ratio"] return ((status.all_time_download * stop_ratio) - status.all_time_upload) / status.upload_payload_rate