summaryrefslogtreecommitdiffstats
path: root/aclk
diff options
context:
space:
mode:
Diffstat (limited to 'aclk')
-rw-r--r--aclk/aclk.c2
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) {