diff --git a/src/RunState.h b/src/RunState.h index af710bf8ea..05ef5b2c63 100644 --- a/src/RunState.h +++ b/src/RunState.h @@ -70,6 +70,7 @@ extern void suspend_processing(); extern void continue_processing(); bool is_processing_suspended(); +[[deprecated("Remove with v8.1. Use run_state::current_pseudo directly, but you probably should not")]] extern double current_packet_timestamp(); extern double current_packet_wallclock(); diff --git a/src/util.cc b/src/util.cc index be452746cc..fb31e61317 100644 --- a/src/util.cc +++ b/src/util.cc @@ -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) {