correctly get the scrape interval

This commit is contained in:
Mitchell Livingston 2007-01-12 05:05:11 +00:00
parent e6701b077d
commit 3cbb5fa681
1 changed files with 2 additions and 1 deletions

View File

@ -1027,13 +1027,14 @@ static void readScrapeAnswer( tr_tracker_t * tc, const char * data, int len )
}
tc->complete = val2->val.i;
val2 = tr_bencDictFind( val1, "flags" );
val2 = tr_bencDictFind( &scrape, "flags" );
if( val2 )
{
val2 = tr_bencDictFind( val2, "min_request_interval" );
if( val2 )
{
tc->scrapeInterval = val2->val.i;
tr_inf( "Scrape: min_request_interval = %d seconds", tc->scrapeInterval );
}
}