Skip to content

Commit

Permalink
reduced progress bar size to properly see it in small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
anibalinn committed Sep 6, 2024
1 parent 9ef6de8 commit 1887052
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions behavex/progress_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


class ProgressBar:
def __init__(self, prefix, total, bar_length=20, print_updates_in_new_lines=False):
def __init__(self, prefix, total, bar_length=15, print_updates_in_new_lines=False):
self.prefix = prefix
self.total = total
self.bar_length = bar_length
Expand All @@ -32,7 +32,7 @@ def _print_progress_bar(self, new_line=False):
percent = 100
filled_length = int(self.bar_length)
else:
percent = 100 * (self.current_iteration / float(self.total))
percent = 100 * float(self.current_iteration / float(self.total))
filled_length = int(self.bar_length * self.current_iteration // self.total)
bar = '█' * filled_length + '-' * (self.bar_length - filled_length)
elapsed_time = global_vars.execution_elapsed_time
Expand Down

0 comments on commit 1887052

Please sign in to comment.