Changeset 2308
- Timestamp:
- Jul 9, 2007, 5:20:23 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/completion.c
r2254 r2308 324 324 325 325 if( !tr_cpBlockIsComplete( cp, tor->blockCount - 1 ) ) 326 b -= (tor-> info.totalSize % tor->blockSize);326 b -= (tor->blockSize - (tor->info.totalSize % tor->blockSize)); 327 327 328 328 return b; … … 352 352 if( !tr_cpBlockIsComplete( cp, tor->blockCount-1 ) 353 353 && info->pieces[info->pieceCount-1].priority != TR_PRI_DND ) 354 b -= (tor-> info.totalSize % tor->blockSize);354 b -= (tor->blockSize - (tor->info.totalSize % tor->blockSize)); 355 355 356 356 return b; … … 383 383 384 384 if( tr_bitfieldHas( cp->blockBitfield, tor->blockCount - 1 ) ) 385 b -= (tor-> info.totalSize % tor->blockSize);385 b -= (tor->blockSize - (tor->info.totalSize % tor->blockSize)); 386 386 387 387 return b;
Note: See TracChangeset
for help on using the changeset viewer.