refactor: progress bar update
This commit is contained in:
Submodule multi_user/libs/replication updated: 226ca7cd8a...6893e55a82
@ -30,7 +30,7 @@ def printProgressBar (iteration, total, prefix = '', suffix = '', decimals = 1,
|
|||||||
percent = ("{0:." + str(decimals) + "f}").format(100 * (iteration / float(total)))
|
percent = ("{0:." + str(decimals) + "f}").format(100 * (iteration / float(total)))
|
||||||
filledLength = int(length * iteration // total)
|
filledLength = int(length * iteration // total)
|
||||||
bar = fill * filledLength + fill_empty * (length - filledLength)
|
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):
|
def get_state_str(state):
|
||||||
state_str = 'None'
|
state_str = 'None'
|
||||||
|
Reference in New Issue
Block a user