mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 20:14:51 +00:00
fix seeding ratio stop on finished torrents
This commit is contained in:
parent
c35a13b227
commit
9eaf2e602a
1 changed files with 2 additions and 2 deletions
|
@ -579,7 +579,7 @@ Space:") + " " + nice_free)
|
|||
|
||||
for unique_ID in self.unique_IDs:
|
||||
torrent_state = self.get_core_torrent_state(unique_ID)
|
||||
if torrent_state['is_seed'] and not torrent_state['is_paused']:
|
||||
if (torrent_state["total_wanted"] - torrent_state["total_wanted_done"] == 0) and not torrent_state['is_paused']:
|
||||
ratio = self.calc_ratio(unique_ID, torrent_state)
|
||||
if ratio >= self.get_pref('auto_seed_ratio'):
|
||||
self.queue_bottom(unique_ID, enforce_queue=False) # don't recurse!
|
||||
|
@ -588,7 +588,7 @@ Space:") + " " + nice_free)
|
|||
if self.get_pref('clear_max_ratio_torrents'):
|
||||
for unique_ID in self.unique_IDs.keys():
|
||||
torrent_state = self.get_core_torrent_state(unique_ID)
|
||||
if torrent_state['is_seed']:
|
||||
if (torrent_state["total_wanted"] - torrent_state["total_wanted_done"] == 0):
|
||||
ratio = self.calc_ratio(unique_ID, torrent_state)
|
||||
if ratio >= self.get_pref('auto_seed_ratio'):
|
||||
self.removed_unique_ids[unique_ID] = 1
|
||||
|
|
Loading…
Add table
Reference in a new issue