mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Prevent manager from busy looping.
I saw this with the new threading code but I'm wondering if it also helps with the "high CPU usage with low traffiv volume" problem.
This commit is contained in:
parent
56dd7918d0
commit
6429d1248a
1 changed files with 2 additions and 0 deletions
|
@ -486,6 +486,8 @@ void net_run()
|
|||
// since Bro timers are not high-precision anyway.)
|
||||
if ( ! using_communication )
|
||||
usleep(100000);
|
||||
else
|
||||
usleep(1000);
|
||||
|
||||
// Flawfinder says about usleep:
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue