log ratelimits in peer bandwidth request entry

This commit is contained in:
Arvid Norberg 2010-10-17 17:39:11 +00:00
parent 3948ca3179
commit 977c2d34dd
1 changed files with 8 additions and 0 deletions

View File

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