1
0
Fork 0

Formatted percent as int instead of float

master
colaclanth 2019-07-22 22:31:32 +01:00
parent 8c954de772
commit 6250e70595
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ def progress_bar(progress, complete, message="", show=True):
percent = ""
if percent_on:
percent = "{:4.0f}%".format(level * 100)
percent = "{:4d}%".format(int(level * 100))
align = cols - message_size - len(percent)
not_end = not progress == complete