Ignore:
Timestamp:
Nov 30, 2008, 1:52:45 AM (12 years ago)
Author:
charles
Message:

#1379 lay some very early groundwork for "partial seeds" -- change tr_completion's enum to use the partial seed terminology

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r7195 r7199  
    15411541    const tr_torrent * tor;
    15421542    float              interval;
    1543     int                isComplete;
     1543    int                isSeed;
    15441544    int                peerCount;
    15451545    const tr_peer **   peers;
     
    15501550    tor = t->tor;
    15511551    interval = tor->info.pieceCount / (float)tabCount;
    1552     isComplete = tor
    1553                  && ( tr_cpGetStatus ( tor->completion ) == TR_CP_COMPLETE );
     1552    isSeed = tor && ( tr_cpGetStatus ( tor->completion ) == TR_SEED );
    15541553    peers = (const tr_peer **) tr_ptrArrayPeek( t->peers, &peerCount );
    15551554
     
    15601559        const int piece = i * interval;
    15611560
    1562         if( isComplete || tr_cpPieceIsComplete( tor->completion, piece ) )
     1561        if( isSeed || tr_cpPieceIsComplete( tor->completion, piece ) )
    15631562            tab[i] = -1;
    15641563        else if( peerCount )
Note: See TracChangeset for help on using the changeset viewer.