Skip to content

Commit

Permalink
Merge pull request #63 from altescy/modify-progress-refresh
Browse files Browse the repository at this point in the history
Modify progress refresh condition
  • Loading branch information
altescy authored Jul 8, 2023
2 parents 787d741 + c8f06c4 commit de7c3fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minato/common/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def show(self) -> None:

current_time = time.time()

if self._iterations > 0:
if 0 < self._iterations < (self._total or float("inf")):
framerate = 1.0 / (current_time - self._last_time_rendered + 1.0e-13)
if framerate > self._framerate:
return
Expand Down

0 comments on commit de7c3fc

Please # to comment.