From aa9bc9b322a40c66cdfc8c989cbfe0ead1c8e23b Mon Sep 17 00:00:00 2001 From: Daniel Abraham Date: Tue, 20 Aug 2024 19:24:28 +0300 Subject: [PATCH] fix total iters in print --- quickstart/program.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstart/program.py b/quickstart/program.py index 539f4bcd..696a3a7d 100644 --- a/quickstart/program.py +++ b/quickstart/program.py @@ -11,7 +11,7 @@ def on_http_get(event): iterations = int(event.data.params.get("iters", "0")) for i in range(iterations): - print("Loop iteration: %d of 50" % (i + 1)) + print("Loop iteration: %d of %d" % (i + 1, iterations)) time.sleep(FIVE_SECONDS) print(f"Finished processing {event.data.method} request")