Do not count downloads as seeds in the queue system.

This commit is contained in:
Andrew Resch 2008-07-01 21:07:18 +00:00
parent b354e7e0d9
commit 94cbac20cd
2 changed files with 5 additions and 9 deletions

View File

@ -4605,14 +4605,12 @@ limits. To make a torrent auto managed, set ``auto_managed`` to true when adding
torrent (see `add_torrent()`_). torrent (see `add_torrent()`_).
The limits of the number of downloading and seeding torrents are controlled via The limits of the number of downloading and seeding torrents are controlled via
``active_downloads`` and ``active_seeds`` in session_settings_. These limits takes ``active_downloads``, ``active_seeds`` and ``active_limit`` in session_settings_.
non auto managed torrents into account as well. If there are are more non-auto managed These limits takes non auto managed torrents into account as well. If there are
torrents being downloaded than the ``active_downloads`` setting, any auto managed more non-auto managed torrents being downloaded than the ``active_downloads``
torrents will be queued until torrents are removed so that the number drops below setting, any auto managed torrents will be queued until torrents are removed so
the limit. that the number drops below the limit.
Seeding torrents counts as downloads, but downloading torrents don't count as
seeding. So, ``active_downloads`` should typically be greater than ``active_seeds``.
The default values are 8 active downloads and 5 active seeds. The default values are 8 active downloads and 5 active seeds.
At a regular interval, torrents are checked if there needs to be any re-ordering of At a regular interval, torrents are checked if there needs to be any re-ordering of

View File

@ -1390,7 +1390,6 @@ namespace aux {
&& t->state() != torrent_status::checking_files) && t->state() != torrent_status::checking_files)
{ {
--num_downloaders; --num_downloaders;
--num_seeds;
if (t->is_paused()) t->resume(); if (t->is_paused()) t->resume();
} }
} }
@ -1413,7 +1412,6 @@ namespace aux {
if (num_seeds > 0 && hard_limit > 0) if (num_seeds > 0 && hard_limit > 0)
{ {
--hard_limit; --hard_limit;
--num_downloaders;
--num_seeds; --num_seeds;
if (t->is_paused()) t->resume(); if (t->is_paused()) t->resume();
} }