From b3a9125014105e072eae3720547c5823e35a1eb9 Mon Sep 17 00:00:00 2001 From: Guilherme Gallo Date: Thu, 27 Feb 2025 16:09:29 -0300 Subject: [PATCH] bin/ci: crnm: Improve timer display formatting Modify the pretty_wait function to use a two-digit width for seconds display, ensuring consistent and aligned output when showing the countdown timer. Signed-off-by: Guilherme Gallo Reviewed-by: Sergi Blanch Torne Part-of: --- bin/ci/ci_run_n_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ci/ci_run_n_monitor.py b/bin/ci/ci_run_n_monitor.py index d652e78efb8..28fb19088b9 100755 --- a/bin/ci/ci_run_n_monitor.py +++ b/bin/ci/ci_run_n_monitor.py @@ -107,7 +107,7 @@ def job_duration(job: gitlab.v4.objects.ProjectPipelineJob) -> float: def pretty_wait(sec: int) -> None: """shows progressbar in dots""" for val in range(sec, 0, -1): - print(f"⏲ {val} seconds", end="\r") # U+23F2 Timer clock + print(f"⏲ {val:2d} seconds", end="\r") # U+23F2 Timer clock time.sleep(1)