Mercurial > stress-tester
changeset 543:85a2cf51b9da
Main "pr" param bugfix
author | Devel 2 |
---|---|
date | Thu, 14 Sep 2017 10:37:08 +0200 |
parents | 24749a1ca61d |
children | 3a7100c0273b |
files | stress-tester/src/main/java/com/passus/st/Main.java |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/Main.java Wed Sep 13 13:26:20 2017 +0200 +++ b/stress-tester/src/main/java/com/passus/st/Main.java Thu Sep 14 10:37:08 2017 +0200 @@ -219,8 +219,6 @@ client.setCollectMetrics(true); client.setConnectPartialSession(cl.hasOption("ps")); client.setWokerType(cl.getOptionValue("wt", "synch")); - client.setWorkersNum(clArgs.length); - client.setDispatcher(new HttpSourceNameAwareClientWorkerDispatcher()); if (cl.hasOption("pr")) { if (clArgs.length != 1) { @@ -233,6 +231,9 @@ } else { throw new IllegalArgumentException("Parameter \"parallelReplays\" should be in range 1-100."); } + } else { + client.setWorkersNum(clArgs.length); + client.setDispatcher(new HttpSourceNameAwareClientWorkerDispatcher()); } if (cl.hasOption("rs")) {