From 0826a9bdbb4d3bcfe48f34107847ff80cb5dd1c4 Mon Sep 17 00:00:00 2001 From: Lars Holmberg Date: Mon, 6 May 2024 11:45:40 +0200 Subject: [PATCH] fix worker_process_count (--expect-workers) when using default (all) loadgens. --- locust_swarm/swarm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locust_swarm/swarm.py b/locust_swarm/swarm.py index dfcd531..b36f62f 100644 --- a/locust_swarm/swarm.py +++ b/locust_swarm/swarm.py @@ -431,10 +431,10 @@ def main(): parser.error( "--skip-plugins has been removed, the default is now NOT to upload plugins (but you can enable it with --upload-plugins)" ) - worker_process_count = args.processes * args.loadgens loadgen_list = args.loadgen_list.split(",") if args.loadgens < 0: args.loadgens = len(loadgen_list) + worker_process_count = args.processes * args.loadgens try: subprocess.check_output(