From 2b346a0fcd2dcb6b09806bf2cb1fab7b096f8c6b Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Fri, 23 Aug 2024 21:17:34 +0200
Subject: [PATCH] Fix broken filename iteration.

---
 stable.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stable.py b/stable.py
index 71320d2..241783f 100755
--- a/stable.py
+++ b/stable.py
@@ -99,7 +99,7 @@ def parse_args():
 def run():
 
     def save_path(count: int) -> str:
-        n_iterations = len(args.gen_paramses)
+        n_iterations = len(args.gen_paramses) * args.quantity
         filename_count = f'_{count:08}' if n_iterations > 1 else ''
         # pylint: disable=possibly-used-before-assignment
         return path_join(dir_path,
-- 
2.30.2