Ignore:
Timestamp:
Jul 24, 2007, 11:50:29 AM (14 years ago)
Author:
charles
Message:

tr_cpBlockAdd: small speedup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/completion.c

    r2348 r2478  
    160160    if( !tr_cpBlockIsComplete( cp, block ) )
    161161    {
    162         const int piece = tr_blockPiece( block );
     162        const int piece = block / cp->nBlocksInPiece;
     163
    163164        ++cp->completeBlocks[piece];
    164165
Note: See TracChangeset for help on using the changeset viewer.