fixed warning in peer_connection

This commit is contained in:
Arvid Norberg 2007-05-10 06:27:52 +00:00
parent 57439bcec8
commit 23ae2e12c8
1 changed files with 1 additions and 1 deletions

View File

@ -1856,7 +1856,7 @@ namespace libtorrent
// otherwise there will be no end to how large it will be!
// TODO: the buffer size should probably be dependent on the transfer speed
int blocks_per_second = m_statistics.upload_rate() / t->block_size();
int blocks_per_second = int(m_statistics.upload_rate() / t->block_size());
if (blocks_per_second == 0) blocks_per_second = 1;
else if (blocks_per_second > 12) blocks_per_second = 12;