Fixed threads=auto not working

The name of the parameter was compared to `auto` instead of the value.
This commit is contained in:
Markus Makela 2016-03-03 15:29:05 +02:00
parent 5f993f0b60
commit 0ddb81ea16

View File

@ -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)
{