(libT) add tr_peer_stat.isSeed

This commit is contained in:
Charles Kerr 2008-12-02 23:16:01 +00:00
parent 6615e162c6
commit 166c6e5f3c
2 changed files with 2 additions and 0 deletions

View File

@ -1823,6 +1823,7 @@ tr_peerMgrPeerStats( const tr_peerMgr * manager,
stat->isIncoming = tr_peerIoIsIncoming( peer->io );
stat->isDownloadingFrom = clientIsDownloadingFrom( peer );
stat->isUploadingTo = clientIsUploadingTo( peer );
stat->isSeed = ( atom->uploadOnly == UPLOAD_ONLY_YES ) || ( peer->progress >= 1.0 );
pch = stat->flagStr;
if( t->optimistic == peer ) *pch++ = 'O';

View File

@ -1053,6 +1053,7 @@ typedef struct tr_peer_stat
tr_bool isEncrypted;
tr_bool isDownloadingFrom;
tr_bool isUploadingTo;
tr_bool isSeed;
tr_bool peerIsChoked;
tr_bool peerIsInterested;