(libT) add tr_peer_stat.isSeed
This commit is contained in:
parent
6615e162c6
commit
166c6e5f3c
|
@ -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';
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue