mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-13 03:03:33 +02:00
math.floor -> int
This commit is contained in:
parent
0c91dcfb88
commit
10a530226a
BIN
Knack Regular Nerd Font.ttf
Normal file
BIN
Knack Regular Nerd Font.ttf
Normal file
Binary file not shown.
@ -24,7 +24,6 @@ from argparse import RawTextHelpFormatter
|
||||
import errno
|
||||
import time
|
||||
import subprocess
|
||||
import math
|
||||
|
||||
try:
|
||||
#Load the module
|
||||
@ -454,7 +453,7 @@ def update_progress(progress):
|
||||
progress = 1
|
||||
status = "Done...\r\n"
|
||||
block = int(round(barLength*progress))
|
||||
text = "\r[{0}] {1}%".format( "#"*block + "-"*(barLength-block), math.floor(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