Skip to content

Commit

Permalink
adjust reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
SwiftSeal committed Jan 16, 2025
1 parent 9d50270 commit 275d74c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resistify/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ def update(self):
else:
# Calculate percentage
percent_complete = int((self.current_count / self.total_count) * 100)
if (
if self.current_count == self.total_count:
logger.info("100% complete")
self.last_reported_percent = 100
elif (
percent_complete % 10 == 0
and percent_complete > 0
and percent_complete > self.last_reported_percent
):
logger.info(f"{percent_complete}% complete")
Expand Down

0 comments on commit 275d74c

Please sign in to comment.