Allow non-integer number of minute countdowns
This commit is contained in:
parent
19e86e0ba0
commit
47308c1508
1 changed files with 1 additions and 0 deletions
|
|
@ -815,6 +815,7 @@ def main() -> None:
|
||||||
|
|
||||||
def print_countdown(proc, seconds) -> None:
|
def print_countdown(proc, seconds) -> None:
|
||||||
"""Print countdown to screen while proc is alive."""
|
"""Print countdown to screen while proc is alive."""
|
||||||
|
seconds = int(seconds)
|
||||||
for i in range(seconds):
|
for i in range(seconds):
|
||||||
sec_left = (seconds - i) % 60
|
sec_left = (seconds - i) % 60
|
||||||
min_left = int((seconds - i) / 60)
|
min_left = int((seconds - i) / 60)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue