From 2d6cc667b5f83a17f25855261005a0fc47e14a17 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 29 Dec 2009 19:06:27 +0000 Subject: [PATCH] removed one floating point operation --- src/session_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session_impl.cpp b/src/session_impl.cpp index c25bf31d2..f5aa0db33 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -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;