counts newly started torrents as active up to 2 minutes, to give them a chance to start downloading. Active torrents are not considered slow in the auto manager.

This commit is contained in:
Arvid Norberg
2008-10-01 05:25:18 +00:00
parent acdcb262af
commit 1092c558e4
4 changed files with 25 additions and 1 deletions

View File

@@ -1290,7 +1290,8 @@ namespace aux {
{
return !(s.dont_count_slow_torrents
&& t->statistics().upload_payload_rate() == 0.f
&& t->statistics().download_payload_rate() == 0.f);
&& t->statistics().download_payload_rate() == 0.f
&& time_now() - t->started() > seconds(s.auto_manage_startup));
}
}