From 9e2367fd1359e53ecc7e44c71b7d2a8abe639d0b Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 22 Aug 2007 23:24:06 +0000 Subject: [PATCH] bandwidth limiter fix --- include/libtorrent/bandwidth_manager.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/libtorrent/bandwidth_manager.hpp b/include/libtorrent/bandwidth_manager.hpp index 75e1f1d4e..b0ff342a4 100644 --- a/include/libtorrent/bandwidth_manager.hpp +++ b/include/libtorrent/bandwidth_manager.hpp @@ -398,6 +398,7 @@ private: block_size = m_limit / (m_limit / max_bandwidth_block_size); } + if (block_size > qe.max_block_size) block_size = qe.max_block_size; } if (amount < block_size / 2)