Skip to content

Commit

Permalink
fix total iters in print
Browse files Browse the repository at this point in the history
  • Loading branch information
daabr committed Aug 20, 2024
1 parent 007764c commit aa9bc9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickstart/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit aa9bc9b

Please sign in to comment.