Changeset 7241


Ignore:
Timestamp:
Dec 2, 2008, 11:16:01 PM (12 years ago)
Author:
charles
Message:

(libT) add tr_peer_stat.isSeed

Location:
trunk/libtransmission
Files:
2 edited

Legend:

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

    r7238 r7241  
    18241824        stat->isDownloadingFrom  = clientIsDownloadingFrom( peer );
    18251825        stat->isUploadingTo      = clientIsUploadingTo( peer );
     1826        stat->isSeed             = ( atom->uploadOnly == UPLOAD_ONLY_YES ) || ( peer->progress >= 1.0 );
    18261827
    18271828        pch = stat->flagStr;
  • trunk/libtransmission/transmission.h

    r7238 r7241  
    10541054    tr_bool      isDownloadingFrom;
    10551055    tr_bool      isUploadingTo;
     1056    tr_bool      isSeed;
    10561057
    10571058    tr_bool      peerIsChoked;
Note: See TracChangeset for help on using the changeset viewer.