diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2022-12-09 18:56:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 18:56:48 +0200 |
commit | c728bfc1eb00a662a24010d2b33e287d44d2a09b (patch) | |
tree | 8c2064f3d5955d9456943c78c3de4a8c9f767c44 /aclk | |
parent | 32d63fe9a6a18c9e757499f0e23a1169b516f9bf (diff) |
fix get_system_cpus() (#14116)
Diffstat (limited to 'aclk')
-rw-r--r-- | aclk/aclk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aclk/aclk.c b/aclk/aclk.c index 3b035b849d..fb47f2347b 100644 --- a/aclk/aclk.c +++ b/aclk/aclk.c @@ -288,7 +288,7 @@ static void puback_callback(uint16_t packet_id) static int read_query_thread_count() { - int threads = MIN(processors/2, 6); + int threads = MIN(get_system_cpus()/2, 6); threads = MAX(threads, 2); threads = config_get_number(CONFIG_SECTION_CLOUD, "query thread count", threads); if(threads < 1) { |