mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +00:00
Move iosource code to zeek namespaces
This commit is contained in:
parent
45b5c6e619
commit
be92bd536f
35 changed files with 180 additions and 136 deletions
|
@ -2025,11 +2025,11 @@ double current_time(bool real)
|
|||
|
||||
double t = double(tv.tv_sec) + double(tv.tv_usec) / 1e6;
|
||||
|
||||
if ( ! pseudo_realtime || real || ! iosource_mgr || ! iosource_mgr->GetPktSrc() )
|
||||
if ( ! pseudo_realtime || real || ! zeek::iosource_mgr || ! zeek::iosource_mgr->GetPktSrc() )
|
||||
return t;
|
||||
|
||||
// This obviously only works for a single source ...
|
||||
iosource::PktSrc* src = iosource_mgr->GetPktSrc();
|
||||
zeek::iosource::PktSrc* src = zeek::iosource_mgr->GetPktSrc();
|
||||
|
||||
if ( net_is_processing_suspended() )
|
||||
return src->CurrentPacketTimestamp();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue