1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00
This commit is contained in:
Mitchell Livingston 2009-10-10 20:25:05 +00:00
parent b7677f7059
commit 2730f9ac9c

View file

@ -1696,7 +1696,10 @@ tr_announcerStats( const tr_torrent * torrent,
if( tier->isScraping )
st->scrapeState = TR_TRACKER_ACTIVE;
else if( tier->scrapeAt > now )
{
st->scrapeState = TR_TRACKER_WAITING;
st->nextScrapeTime = tier->scrapeAt;
}
else
st->scrapeState = TR_TRACKER_QUEUED;
@ -1715,7 +1718,10 @@ tr_announcerStats( const tr_torrent * torrent,
else if( !torrent->isRunning )
st->announceState = TR_TRACKER_INACTIVE;
else if( tier->announceAt > now )
{
st->announceState = TR_TRACKER_WAITING;
st->nextAnnounceTime = tier->announceAt;
}
else
st->announceState = TR_TRACKER_QUEUED;