Ignore:
Timestamp:
Jul 27, 2007, 11:56:34 AM (14 years ago)
Author:
charles
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/completion.c

    r2513 r2515  
    325325            ++b;
    326326
    327     b *= tor->blockSize;
    328 
    329     if( tor->blockCount && tr_bitfieldHas( cp->blockBitfield, tor->blockCount - 1 ) )
    330         b -= (tor->blockSize - (tor->info.totalSize % tor->blockSize));
     327    b *= info->pieceSize;
     328
     329    if( tr_cpPieceIsComplete( cp, info->pieceCount-1 ) )
     330        b -= (info->pieceSize - (info->totalSize % info->pieceSize));
    331331
    332332   return b;
Note: See TracChangeset for help on using the changeset viewer.