Allow non-integer number of minute countdowns

This commit is contained in:
2Shirt 2022-05-14 16:19:18 -07:00
parent 19e86e0ba0
commit 47308c1508
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -815,6 +815,7 @@ def main() -> None:
def print_countdown(proc, seconds) -> None:
"""Print countdown to screen while proc is alive."""
seconds = int(seconds)
for i in range(seconds):
sec_left = (seconds - i) % 60
min_left = int((seconds - i) / 60)