Changeset 5697


Ignore:
Timestamp:
Apr 25, 2008, 4:40:14 PM (14 years ago)
Author:
charles
Message:

#895: tweak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tracker.c

    r5695 r5697  
    722722    if( t )
    723723    {
     724        const time_t now = time( NULL );
     725
    724726        if( req->reqtype == TR_REQ_SCRAPE )
    725727        {
    726             t->lastScrapeTime = time( NULL );
     728            t->lastScrapeTime = now;
    727729            t->scrapeAt = 0;
    728730        }
    729731        else
    730732        {
    731             t->lastAnnounceTime = time( NULL );
     733            t->lastAnnounceTime = now;
    732734            t->reannounceAt = 0;
    733             t->scrapeAt = 0;
    734             t->manualAnnounceAllowedAt = ~(time_t)0;
     735            t->scrapeAt = req->reqtype == TR_REQ_STOPPED
     736                        ? now + t->scrapeIntervalSec + t->randOffset
     737                        : 0;
    735738        }
    736739    }
Note: See TracChangeset for help on using the changeset viewer.