Changeset 1376


Ignore:
Timestamp:
Jan 17, 2007, 1:06:52 AM (15 years ago)
Author:
livings124
Message:

change to scrape frequency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tracker.c

    r1374 r1376  
    117117
    118118    tc->interval       = 300;
    119     tc->scrapeInterval = 600;
     119    tc->scrapeInterval = 1200;
    120120
    121121    tc->lastError      = 1;
     
    306306
    307307    now      = tr_date();
    308     interval = 1000 * MAX( tc->scrapeInterval, 60 );
    309 
    310     /* scrape half as often if there is no need to */
    311     if( !tc->scrapeNeeded && !tc->lastScrapeFailed )
    312     {
    313         interval *= 2;
     308    interval = 1000 * MAX( tc->scrapeInterval, 600 );
     309
     310    /* scrape more often if needed */
     311    if( tc->scrapeNeeded || tc->lastScrapeFailed )
     312    {
     313        interval /= 2;
    314314    }
    315315
Note: See TracChangeset for help on using the changeset viewer.