when calculating desired queue size, block size should not depend on whether or not they are merged in the requests

This commit is contained in:
Arvid Norberg 2008-11-12 00:54:44 +00:00
parent a7af4d806b
commit a5ba060240
1 changed files with 1 additions and 2 deletions

View File

@ -2906,8 +2906,7 @@ namespace libtorrent
// the minimum number of requests is 2 and the maximum is 48
// the block size doesn't have to be 16. So we first query the
// torrent for it
const int block_size = m_request_large_blocks
? t->torrent_file().piece_length() : t->block_size();
const int block_size = t->block_size();
TORRENT_ASSERT(block_size > 0);
if (m_snubbed)