Skip to content

Commit

Permalink
added progress bar precision
Browse files Browse the repository at this point in the history
  • Loading branch information
monoand6 committed Nov 15, 2022
1 parent 6d21da9 commit 0977350
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web3cat/fetcher/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ def print_progress(
global LAST_PERCENT

# Avoid too much output
if iteration != total and iteration > 0 and iteration / total - LAST_PERCENT < 0.01:
if (
iteration != total
and iteration > 0
and iteration / total - LAST_PERCENT < 0.001
):
return

LAST_PERCENT = iteration / total
Expand Down

0 comments on commit 0977350

Please sign in to comment.