1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 16:52:39 +00:00

fix stupid typo in completion.c that gave the wrong valid dl amount

This commit is contained in:
Charles Kerr 2007-07-27 11:56:34 +00:00
parent 44282a7be8
commit b372ce45bf

View file

@ -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;
}