Changeset 2075
- Timestamp:
- Jun 14, 2007, 10:52:11 AM (15 years ago)
- Location:
- branches/file_selection/libtransmission
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/file_selection/libtransmission/completion.c
r2073 r2075 349 349 for( i=0; i<info->pieceCount; ++i ) 350 350 if( !tr_cpPieceIsComplete( cp, i ) ) 351 b += tor->blockSize * (tr_cpCountBlocks( cp, i ) - cp->completeBlocks[ i ] );352 353 return b ;351 b += ( tr_cpCountBlocks( cp, i ) - cp->completeBlocks[ i ] ); 352 353 return b * tor->blockSize;; 354 354 } 355 355 -
branches/file_selection/libtransmission/torrent.c
r2073 r2075 626 626 { 627 627 if( tr_cpBlockIsComplete( tor->completion, firstBlock ) ) 628 haveBytes += lastBlockOffset - firstBlockOffset;628 haveBytes += lastBlockOffset + 1 - firstBlockOffset; 629 629 } 630 630 else … … 640 640 641 641 if( tr_cpBlockIsComplete( tor->completion, lastBlock ) ) 642 haveBytes += lastBlockOffset ;642 haveBytes += lastBlockOffset + 1; 643 643 } 644 644
Note: See TracChangeset
for help on using the changeset viewer.