mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
fix stupid typo in completion.c that gave the wrong valid dl amount
This commit is contained in:
parent
44282a7be8
commit
b372ce45bf
1 changed files with 3 additions and 3 deletions
|
@ -324,10 +324,10 @@ tr_cpDownloadedValid( const tr_completion_t * cp )
|
|||
if( tr_cpPieceIsComplete( cp, i ) )
|
||||
++b;
|
||||
|
||||
b *= tor->blockSize;
|
||||
b *= info->pieceSize;
|
||||
|
||||
if( tor->blockCount && tr_bitfieldHas( cp->blockBitfield, tor->blockCount - 1 ) )
|
||||
b -= (tor->blockSize - (tor->info.totalSize % tor->blockSize));
|
||||
if( tr_cpPieceIsComplete( cp, info->pieceCount-1 ) )
|
||||
b -= (info->pieceSize - (info->totalSize % info->pieceSize));
|
||||
|
||||
return b;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue