agent: Read configuration directive 'workers' for number of threads

The example configuration file said 'workers' was the directive, but the code said
'threads'.

Now we accept both to prevent configuration errors, but the example config remains 'workers'
This commit is contained in:
Wido den Hollander 2012-08-08 22:43:27 +02:00
parent 47cad4ee59
commit d91b7dcd4b
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ public class AgentShell implements IAgentShell {
if (tokens[0].equalsIgnoreCase("port")) {
port = tokens[1];
} else if (tokens[0].equalsIgnoreCase("threads")) {
} else if (tokens[0].equalsIgnoreCase("threads") || tokens[0].equalsIgnoreCase("workers")) {
workers = tokens[1];
} else if (tokens[0].equalsIgnoreCase("host")) {
host = tokens[1];