Ignore:
Timestamp:
Jul 10, 2007, 3:12:46 AM (14 years ago)
Author:
charles
Message:

splitting dnd and priorities apart, and moving the file storage for those fields into fastresume

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/completion.c

    r2308 r2316  
    296296        if( tr_cpPieceIsComplete( cp, i ) )
    297297            continue;
    298         if( info->pieces[i].priority != TR_PRI_DND)
     298        if( !info->pieces[i].dnd )
    299299            return TR_CP_INCOMPLETE;
    300300        ret = TR_CP_DONE;
     
    344344
    345345    for( i=0; i<info->pieceCount; ++i )
    346         if( !tr_cpPieceIsComplete( cp, i ) && info->pieces[i].priority != TR_PRI_DND )
     346        if( !tr_cpPieceIsComplete( cp, i ) && !info->pieces[i].dnd )
    347347            b += ( tr_cpCountBlocks( cp, i ) - cp->completeBlocks[ i ] );
    348348
     
    350350
    351351    i = tor->blockCount - 1;
    352     if( !tr_cpBlockIsComplete( cp, tor->blockCount-1 )
    353                   && info->pieces[info->pieceCount-1].priority != TR_PRI_DND )
     352    if( !tr_cpBlockIsComplete( cp, tor->blockCount-1 ) && !info->pieces[info->pieceCount-1].dnd )
    354353        b -= (tor->blockSize - (tor->info.totalSize % tor->blockSize));
    355354
Note: See TracChangeset for help on using the changeset viewer.