Remove FileAnalysis::postpone_timeout.

FileAnalysis::set_timeout_interval can now perform same function.
This commit is contained in:
Jon Siwek 2013-05-21 10:50:07 -05:00
parent bc5cd3acc8
commit 16f924c2c0
6 changed files with 7 additions and 43 deletions

View file

@ -153,17 +153,6 @@ void Manager::SetSize(uint64 size, AnalyzerTag::Tag tag, Connection* conn,
RemoveFile(file->GetID());
}
bool Manager::PostponeTimeout(const string& file_id) const
{
File* file = Lookup(file_id);
if ( ! file )
return false;
file->postpone_timeout = true;
return true;
}
bool Manager::SetTimeoutInterval(const string& file_id, double interval) const
{
File* file = Lookup(file_id);
@ -171,6 +160,9 @@ bool Manager::SetTimeoutInterval(const string& file_id, double interval) const
if ( ! file )
return false;
if ( interval > 0 )
file->postpone_timeout = true;
file->SetTimeoutInterval(interval);
return true;
}