Fixed progressbar adding new lines

This commit is contained in:
Zen 2020-01-11 07:28:43 +02:00
parent 0e919ab808
commit c6f33fd0df

View file

@ -52,7 +52,7 @@ class ProgressBar:
def print(self):
terminal_size = int(os.popen('stty size', 'r').read().split()[1])
self.length = terminal_size - 10 - 2 * len(str(self.total))
self.length = terminal_size - 11 - 2 * len(str(self.total))
if self.iteration == 0:
percent = 0