(trunk libT) #4175 "very bizarre and unwieldy logfile in 2.30b2" -- another test commit for gunzip :)

This commit is contained in:
Jordan Lee 2011-04-10 03:57:37 +00:00
parent 42fbf1f646
commit 9b96ced90a
1 changed files with 4 additions and 1 deletions

View File

@ -297,12 +297,15 @@ tr_tier;
static time_t
get_next_scrape_time( int interval )
{
time_t ret;
const time_t now = tr_time( );
/* Add the interval, and then increment to the nearest 10th second.
* The latter step is to increase the odds of several torrents coming
* due at the same time to improve multiscrape. */
return (now+interval) + (10-((now+interval)%10));
ret = now + interval;
while( ret % 10 ) ++ret;
return ret;
}
static void