From d91b7dcd4beee610e2b4839dbdecafab49053af1 Mon Sep 17 00:00:00 2001 From: Wido den Hollander Date: Wed, 8 Aug 2012 22:43:27 +0200 Subject: [PATCH] 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' --- agent/src/com/cloud/agent/AgentShell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/src/com/cloud/agent/AgentShell.java b/agent/src/com/cloud/agent/AgentShell.java index ca3f7de02f4..05caf8e6cda 100644 --- a/agent/src/com/cloud/agent/AgentShell.java +++ b/agent/src/com/cloud/agent/AgentShell.java @@ -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];