refactor: progress bar update

This commit is contained in:
Swann
2020-02-09 00:55:19 +01:00
parent 6975edfb66
commit af53e54aa8
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ def printProgressBar (iteration, total, prefix = '', suffix = '', decimals = 1,
percent = ("{0:." + str(decimals) + "f}").format(100 * (iteration / float(total)))
filledLength = int(length * iteration // total)
bar = fill * filledLength + fill_empty * (length - filledLength)
return '{} |{}| {}%{}'.format(prefix, bar, percent, suffix)
return '{} |{}| {}/{}{}'.format(prefix, bar, iteration,total, suffix)
def get_state_str(state):
state_str = 'None'