mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-12-25 20:18:01 +02:00
Merge pull request #183 from reujab/round-progress
Convert progress to an integer
This commit is contained in:
commit
b304a6b319
BIN
Knack Regular Nerd Font.ttf
Normal file
BIN
Knack Regular Nerd Font.ttf
Normal file
Binary file not shown.
@ -455,7 +455,7 @@ def update_progress(progress):
|
||||
progress = 1
|
||||
status = "Done...\r\n"
|
||||
block = int(round(barLength*progress))
|
||||
text = "\r[{0}] {1}%".format( "#"*block + "-"*(barLength-block), progress*100)
|
||||
text = "\r[{0}] {1}%".format( "#"*block + "-"*(barLength-block), int(progress*100))
|
||||
sys.stdout.write(text)
|
||||
sys.stdout.flush()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user