forked from premiere/premiere-libtorrent
removed one floating point operation
This commit is contained in:
parent
0350e86867
commit
2d6cc667b5
|
@ -1758,7 +1758,7 @@ namespace aux {
|
|||
{
|
||||
torrent& t = *i->second;
|
||||
TORRENT_ASSERT(!t.is_aborted());
|
||||
if (t.statistics().upload_rate() > t.upload_limit() * 0.9f)
|
||||
if (t.statistics().upload_rate() > t.upload_limit() * 9 / 10)
|
||||
++congested_torrents;
|
||||
else
|
||||
++uncongested_torrents;
|
||||
|
|
Loading…
Reference in New Issue