allow torrents to keep running when they encounter an error (such as disk full) but still report the error in the torrent's error string

This commit is contained in:
Arvid Norberg
2011-05-16 07:47:21 +00:00
parent ddd9dd4b09
commit 6e23b9f5a6
3 changed files with 6 additions and 5 deletions

View File

@@ -2677,7 +2677,7 @@ namespace aux {
{
torrent& t = *i->second;
TORRENT_ASSERT(!t.is_aborted());
if (t.statistics().upload_rate() > t.upload_limit() * 9 / 10)
if (t.statistics().upload_rate() * 11 / 10 > t.upload_limit())
++congested_torrents;
else
++uncongested_torrents;