Skip to content

Commit

Permalink
Show chunk n of m while downloading (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouni authored Sep 20, 2024
1 parent 8f56a92 commit 14e0c62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,9 @@ def download(self):

size = int(r.headers.get("Content-Length"))
self.logger.debug(
"Download parts db chunk %d with a size of %.2fMB",
"Download parts db chunk %d of %d with a size of %.2fMB",
i + 1,
cnt,
size / 1024 / 1024,
)
for data in r.iter_content(chunk_size=4096):
Expand Down

0 comments on commit 14e0c62

Please sign in to comment.