mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28:19 +00:00
RunState.h: Deprecate misleadingly named current_packet_timestamp()
This returns current_pseudo, naming it current_packet_timestamp() is actively misleading.
This commit is contained in:
parent
402b768787
commit
54d28a2179
2 changed files with 3 additions and 2 deletions
|
@ -1867,11 +1867,11 @@ double current_time(bool real) {
|
|||
iosource::PktSrc* src = iosource_mgr->GetPktSrc();
|
||||
|
||||
if ( run_state::is_processing_suspended() )
|
||||
return run_state::current_packet_timestamp();
|
||||
return run_state::detail::current_pseudo;
|
||||
|
||||
// We don't scale with pseudo_realtime here as that would give us a
|
||||
// jumping real-time.
|
||||
return run_state::current_packet_timestamp() + (t - run_state::current_packet_wallclock());
|
||||
return run_state::detail::current_pseudo + (t - run_state::current_packet_wallclock());
|
||||
}
|
||||
|
||||
struct timeval double_to_timeval(double t) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue