Make 'active_seeds' and 'active_downloads' use -1 as unlimited

This commit is contained in:
Andrew Resch
2008-06-17 15:44:04 +00:00
parent 24b24aff4e
commit d70ec645d7
2 changed files with 6 additions and 1 deletions

View File

@@ -1308,6 +1308,11 @@ namespace aux {
int num_downloaders = settings().active_downloads;
int num_seeds = settings().active_seeds;
if (num_downloaders == -1)
num_downloaders = (std::numeric_limits<int>::max)();
if (num_seeds == -1)
num_seeds = (std::numeric_limits<int>::max)();
for (torrent_map::iterator i = m_torrents.begin()
, end(m_torrents.end()); i != end; ++i)
{