mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix typo in get_eta() stop_seed_ratio should be stop_ratio
This commit is contained in:
parent
24ad257fdd
commit
ab56257b49
1 changed files with 1 additions and 1 deletions
|
@ -395,7 +395,7 @@ class Torrent:
|
||||||
# We're a seed, so calculate the time to the 'stop_share_ratio'
|
# We're a seed, so calculate the time to the 'stop_share_ratio'
|
||||||
if not status.upload_payload_rate:
|
if not status.upload_payload_rate:
|
||||||
return 0
|
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
|
return ((status.all_time_download * stop_ratio) - status.all_time_upload) / status.upload_payload_rate
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue