This commit is contained in:
Radovan Bast 2016-04-11 13:05:00 +02:00
parent ea962bf074
commit 49e2dda540

View File

@ -53,8 +53,7 @@ def print_progress_bar(text, done, total, width):
Print progress bar.
"""
n = int(float(width) * float(done) / float(total))
sys.stdout.write("\r{0} [{1}{2}] ({3}/{4})".format(text, '#' * n,
' ' * (width - n), done, total))
sys.stdout.write("\r{0} [{1}{2}] ({3}/{4})".format(text, '#' * n, ' ' * (width - n), done, total))
sys.stdout.flush()
# ------------------------------------------------------------------------------