mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Save CPU when idle.
This needs a bit more testing. It may also with the general problem of high CPU usage with low traffic.
This commit is contained in:
parent
b8ec653ebf
commit
7fcb7b5f17
1 changed files with 1 additions and 0 deletions
|
@ -454,6 +454,7 @@ void net_run()
|
|||
// date on timers and events.
|
||||
network_time = ct;
|
||||
expire_timers();
|
||||
usleep(1); // Just yield.
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue