Skip to content

Commit

Permalink
fix worker_process_count (--expect-workers) when using default (all) …
Browse files Browse the repository at this point in the history
…loadgens.
  • Loading branch information
cyberw committed May 6, 2024
1 parent 7694c7b commit 0826a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust_swarm/swarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0826a9b

Please sign in to comment.