Formatted percent as int instead of float
parent
8c954de772
commit
6250e70595
|
@ -48,7 +48,7 @@ def progress_bar(progress, complete, message="", show=True):
|
||||||
|
|
||||||
percent = ""
|
percent = ""
|
||||||
if percent_on:
|
if percent_on:
|
||||||
percent = "{:4.0f}%".format(level * 100)
|
percent = "{:4d}%".format(int(level * 100))
|
||||||
|
|
||||||
align = cols - message_size - len(percent)
|
align = cols - message_size - len(percent)
|
||||||
not_end = not progress == complete
|
not_end = not progress == complete
|
||||||
|
|
Loading…
Reference in New Issue