mirror of
https://github.com/transmission/transmission
synced 2025-02-21 21:57:01 +00:00
parent
3d2fa18c61
commit
72cae4996f
1 changed files with 1 additions and 1 deletions
|
@ -1292,7 +1292,7 @@ static uint64_t countFileBytesCompleted(tr_torrent const* tor, tr_file_index_t i
|
|||
}
|
||||
|
||||
// the middle blocks
|
||||
if (begin + 1 < end)
|
||||
if (end - begin > 2)
|
||||
{
|
||||
uint64_t u = tor->completion.blocks().count(begin + 1, end - 1);
|
||||
u *= tor->block_size;
|
||||
|
|
Loading…
Reference in a new issue