Skip to content

Commit

Permalink
fix progress bar display bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Dec 11, 2024
1 parent e9158ab commit 19f03d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lenskit/lenskit/logging/progress/_rich.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,6 @@ def render(self, task: Task):
elif speed > 1:
disp = "{:.3g} it/s".format(speed)
else:
disp = "{:.3g} s/it"
disp = "{:.3g} s/it".format(1.0 / speed)

Check warning on line 118 in lenskit/lenskit/logging/progress/_rich.py

View check run for this annotation

Codecov / codecov/patch

lenskit/lenskit/logging/progress/_rich.py#L118

Added line #L118 was not covered by tests

return Text(disp, "progress.percentage")

0 comments on commit 19f03d5

Please sign in to comment.