From 0ddb81ea16b7e37ea9a03c78c8e8017de387dde0 Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Thu, 3 Mar 2016 15:29:05 +0200 Subject: [PATCH] Fixed `threads=auto` not working The name of the parameter was compared to `auto` instead of the value. --- server/core/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/config.c b/server/core/config.c index e1dc53701..79a185c3e 100644 --- a/server/core/config.c +++ b/server/core/config.c @@ -884,7 +884,7 @@ handle_global_item(const char *name, const char *value) int i; if (strcmp(name, "threads") == 0) { - if (strcmp(name, "auto") == 0) + if (strcmp(value, "auto") == 0) { if ((gateway.n_threads = get_processor_count()) > 1) {