better smoothing for bar

This commit is contained in:
Zen 2020-07-25 15:52:06 +03:00
parent 70e00fb6b4
commit 980c966e53

View file

@ -22,7 +22,7 @@ class Counter():
self.first_update = True
self.initial = initial
self.left = total - initial
self.tqdm_bar = tqdm(total=self.left, initial=0, dynamic_ncols=True, unit="fr", leave=True, smoothing=0.2)
self.tqdm_bar = tqdm(total=self.left, initial=0, dynamic_ncols=True, unit="fr", leave=True, smoothing=0.01)
def update(self, value):
if self.first_update: