removed one floating point operation

This commit is contained in:
Arvid Norberg 2009-12-29 19:06:27 +00:00
parent 0350e86867
commit 2d6cc667b5
1 changed files with 1 additions and 1 deletions

View File

@ -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;