1
0
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:
Ryan L McIntyre 2017-07-24 16:53:16 -04:00 committed by GitHub
commit b304a6b319
2 changed files with 1 additions and 1 deletions

BIN
Knack Regular Nerd Font.ttf Normal file

Binary file not shown.

View File

@ -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()