Skip to content

Commit

Permalink
minor fix of padding
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielecalvo committed Sep 26, 2024
1 parent 773b5d5 commit 7174e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tenvplate/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def show(j: float) -> None:
x = int(size * j / count)
remaining = ((time.time() - start) / j) * (count - j)
mins, sec = divmod(remaining, 60) # limited to minutes
time_str = f"{int(mins):02}:{sec:03.1f}"
time_str = f"{int(mins):02}:{sec:04.1f}"
print(
f"{prefix}[{'█' * x}{('.' * (size - x))}] {j}/{count} Est wait {time_str}", end="\r", file=out, flush=True
)
Expand Down

0 comments on commit 7174e9f

Please sign in to comment.