fix overflow issue when determining number of outstanding bytes

This commit is contained in:
Arvid Norberg 2011-10-18 16:22:36 +00:00
parent 95e462e750
commit a9b51e1579
1 changed files with 1 additions and 1 deletions

View File

@ -4354,7 +4354,7 @@ namespace libtorrent
// only add new piece-chunks if the send buffer is small enough
// otherwise there will be no end to how large it will be!
int upload_rate = int(m_statistics.upload_rate());
boost::uint64_t upload_rate = int(m_statistics.upload_rate());
int buffer_size_watermark = upload_rate
* m_ses.settings().send_buffer_watermark_factor / 100;