Corrected comparison between strcmp and 0 so that threads configuration parameter value becomes effective.
This commit is contained in:
@ -361,10 +361,11 @@ config_threadcount()
|
|||||||
static int
|
static int
|
||||||
handle_global_item(const char *name, const char *value)
|
handle_global_item(const char *name, const char *value)
|
||||||
{
|
{
|
||||||
if (!strcmp(name, "threads") == 0)
|
if (strcmp(name, "threads") == 0) {
|
||||||
gateway.n_threads = atoi(value);
|
gateway.n_threads = atoi(value);
|
||||||
else
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user