mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
Display the proper seeder/leecher/download count for backup trackers, instead of all zeros.
This commit is contained in:
parent
22f7a64aa2
commit
9dc679ab58
2 changed files with 4 additions and 5 deletions
|
@ -1722,6 +1722,10 @@ tr_announcerStats( const tr_torrent * torrent,
|
|||
st->isBackup = tracker != tier->currentTracker;
|
||||
st->lastScrapeStartTime = tier->lastScrapeStartTime;
|
||||
|
||||
st->seederCount = tracker->seederCount;
|
||||
st->leecherCount = tracker->leecherCount;
|
||||
st->downloadCount = tracker->downloadCount;
|
||||
|
||||
if( st->isBackup )
|
||||
{
|
||||
st->scrapeState = TR_TRACKER_INACTIVE;
|
||||
|
@ -1770,10 +1774,6 @@ tr_announcerStats( const tr_torrent * torrent,
|
|||
}
|
||||
else
|
||||
st->announceState = TR_TRACKER_QUEUED;
|
||||
|
||||
st->seederCount = tracker->seederCount;
|
||||
st->leecherCount = tracker->leecherCount;
|
||||
st->downloadCount = tracker->downloadCount;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1792,7 +1792,6 @@ tr_peerMgrGetPeers( tr_torrent * tor,
|
|||
|
||||
assert( tr_isTorrent( tor ) );
|
||||
assert( setme_pex != NULL );
|
||||
assert( setme_pex != NULL );
|
||||
assert( af==TR_AF_INET || af==TR_AF_INET6 );
|
||||
assert( list_mode==TR_PEERS_CONNECTED || list_mode==TR_PEERS_ALL );
|
||||
|
||||
|
|
Loading…
Reference in a new issue