From 6fe0c325dee25ca3f6abeee161259218b367f96f Mon Sep 17 00:00:00 2001 From: bvolovat Date: Thu, 6 Feb 2025 18:19:06 +0200 Subject: [PATCH] fix performance script Signed-off-by: bvolovat --- performance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/performance.py b/performance.py index 5bf0293..662735d 100644 --- a/performance.py +++ b/performance.py @@ -112,10 +112,10 @@ def create_parallel_namespaces(node_count, skip_cluster=False): check=True, capture_output=True, text=True ) total_nodes = len(result.stdout.splitlines()) - num_namespaces = ((total_nodes - 4) * 2, 1) # Ensure at least 1 namespace + num_namespaces = (total_nodes - 2) * 2 else: # Calculate the number of namespaces to create - num_namespaces = ((node_count - 4) * 2, 1) + num_namespaces = (node_count - 2) * 2 print(f"Creating {num_namespaces} namespaces")