Fix stop seed ratio to only stop Seeding torrents.

This commit is contained in:
Andrew Resch 2008-03-10 10:33:29 +00:00
parent b5078571a2
commit 174ea3c35e
1 changed files with 8 additions and 7 deletions

View File

@ -65,6 +65,7 @@ class TorrentQueue(component.Component):
stop_ratio = self.config["stop_seed_ratio"]
for torrent_id in self.torrents.get_torrent_list():
if self.torrents[torrent_id].handle.is_seed():
if self.torrents[torrent_id].get_ratio() >= stop_ratio:
# This torrent is at or exceeding the stop ratio so we need to
# pause or remove it from the session.