mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
Pass network time down to Expire()
This commit is contained in:
parent
c7503654e8
commit
ebefb21c53
6 changed files with 14 additions and 11 deletions
|
@ -113,9 +113,10 @@ void Manager::Expire() {
|
|||
|
||||
DBG_LOG(DBG_STORAGE, "Expiration running, have %zu backends to check", backends.size());
|
||||
|
||||
double current_network_time = run_state::network_time;
|
||||
for ( auto it = backends.begin(); it != backends.end() && ! run_state::terminating; ++it ) {
|
||||
if ( (*it)->IsOpen() )
|
||||
(*it)->Expire();
|
||||
(*it)->Expire(current_network_time);
|
||||
}
|
||||
|
||||
expire_running.clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue