mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +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.
|
// date on timers and events.
|
||||||
network_time = ct;
|
network_time = ct;
|
||||||
expire_timers();
|
expire_timers();
|
||||||
|
usleep(1); // Just yield.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue