mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Merge remote-tracking branch 'origin/topic/timw/continue-processing-math'
* origin/topic/timw/continue-processing-math: Fix a long-standing bug in the math around continue_processing Add is_processing_suspended BIF
This commit is contained in:
commit
51ca741d92
6 changed files with 58 additions and 4 deletions
|
@ -541,12 +541,13 @@ void continue_processing()
|
|||
detail::current_wallclock = util::current_time(true);
|
||||
}
|
||||
|
||||
--_processing_suspended;
|
||||
if ( _processing_suspended > 0 )
|
||||
--_processing_suspended;
|
||||
}
|
||||
|
||||
bool is_processing_suspended()
|
||||
{
|
||||
return _processing_suspended;
|
||||
return _processing_suspended > 0;
|
||||
}
|
||||
|
||||
} // namespace zeek::run_state
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue