mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
Display the proper seeder/leecher/download count for backup trackers, instead of all zeros.
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user