diff options
-rw-r--r-- | timebomb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/timebomb.py b/timebomb.py index dc721c3..9cb8496 100644 --- a/timebomb.py +++ b/timebomb.py @@ -68,7 +68,7 @@ def sleep(m, s): for x in range(sleep_time_s): pr_m, pr_s = divmod(x, 60) print(' {:02d}:{:02d} '.format(pr_m, pr_s), end='') - progress = int(x/sleep_time_s * pbar_len) + progress = int(x/(sleep_time_s-1) * pbar_len) print('#' * progress + '_' * int(pbar_len-progress), end='') print(' {:02d}:{:02d} '.format(m, s), end='\r') time.sleep(1) |