From 977c2d34dd9587dcf147875955639f80cc4daf0f Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 17 Oct 2010 17:39:11 +0000 Subject: [PATCH] log ratelimits in peer bandwidth request entry --- src/peer_connection.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index 9103421a7..5510376d8 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -4258,6 +4258,10 @@ namespace libtorrent "upload: " << m_send_buffer.size() << " prio: " << priority << " channels: " << bwc1 << " " << bwc2 << " " << bwc3 << " " << bwc4 + << " limits: " << (bwc1?bwc1->throttle():0) << " " + << (bwc2?bwc2->throttle():0) << " " + << (bwc3?bwc3->throttle():0) << " " + << (bwc4?bwc4->throttle():0) << " ignore: " << m_ignore_bandwidth_limits << " ]\n"; #endif @@ -4274,6 +4278,10 @@ namespace libtorrent #ifdef TORRENT_VERBOSE_LOGGING (*m_logger) << time_now_string() << " *** REQUEST_BANDWIDTH [ " "download: " << (m_download_queue.size() * 16 * 1024 + 30) + << " limits: " << (bwc1?bwc1->throttle():0) << " " + << (bwc2?bwc2->throttle():0) << " " + << (bwc3?bwc3->throttle():0) << " " + << (bwc4?bwc4->throttle():0) << " prio: " << m_priority << " ]\n"; #endif TORRENT_ASSERT(m_priority <= 255);