mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Fix how Broker/CAF sleep duration options are set
With CAF 0.17.0, these are now reporting an incorrect option name was being used.
This commit is contained in:
parent
6fa0f4ac49
commit
b3884de2e5
3 changed files with 19 additions and 5 deletions
|
@ -195,11 +195,11 @@ void Manager::InitPostScript()
|
|||
config.set("scheduler.max-threads",
|
||||
get_option("Broker::max_threads")->AsCount());
|
||||
|
||||
config.set("work-stealing.moderate-sleep-duration-us",
|
||||
static_cast<unsigned>(get_option("Broker::moderate_sleep")->AsInterval() / Microseconds));
|
||||
config.set("work-stealing.moderate-sleep-duration", caf::timespan(
|
||||
static_cast<unsigned>(get_option("Broker::moderate_sleep")->AsInterval() * 1e9)));
|
||||
|
||||
config.set("work-stealing.relaxed-sleep-duration-us",
|
||||
static_cast<unsigned>(get_option("Broker::relaxed_sleep")->AsInterval() / Microseconds));
|
||||
config.set("work-stealing.relaxed-sleep-duration", caf::timespan(
|
||||
static_cast<unsigned>(get_option("Broker::relaxed_sleep")->AsInterval() * 1e9)));
|
||||
|
||||
config.set("work-stealing.aggressive-poll-attempts",
|
||||
get_option("Broker::aggressive_polls")->AsCount());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue