Skip to content

Commit

Permalink
Set min show to .5
Browse files Browse the repository at this point in the history
  • Loading branch information
cidrblock committed Sep 15, 2023
1 parent 957373b commit f4a339b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pip4a/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,14 +479,14 @@ def __exit__(
"""
# delay if less than 1 second has elapsed
# delay if less than n seconds has elapsed
if not self._term_features.any_enabled():
return
min_show_time = 1
min_show_time = 0.5
if self._start_time:
elapsed = time.time() - self._start_time
if elapsed < min_show_time:
time.sleep(1 - elapsed)
time.sleep(min_show_time - elapsed)
if self._term_features.any_enabled():
self.busy = False
self.remove_spinner(cleanup=True)
Expand Down

0 comments on commit f4a339b

Please sign in to comment.