summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Macdonald <ian@caliban.org>2020-10-20 23:52:02 +0200
committerGitHub <noreply@github.com>2020-10-20 23:52:02 +0200
commitababc2760d07f0c8ec688431f67df0a23cc843d1 (patch)
tree9c42585a3339d800f95a36e2190dc4e18295cca3
parentfix #19 (diff)
downloadsamloader-ababc2760d07f0c8ec688431f67df0a23cc843d1.tar
samloader-ababc2760d07f0c8ec688431f67df0a23cc843d1.tar.gz
samloader-ababc2760d07f0c8ec688431f67df0a23cc843d1.tar.bz2
samloader-ababc2760d07f0c8ec688431f67df0a23cc843d1.tar.lz
samloader-ababc2760d07f0c8ec688431f67df0a23cc843d1.tar.xz
samloader-ababc2760d07f0c8ec688431f67df0a23cc843d1.tar.zst
samloader-ababc2760d07f0c8ec688431f67df0a23cc843d1.zip
-rw-r--r--samloader/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/samloader/main.py b/samloader/main.py
index baa9d48..cae0bf4 100644
--- a/samloader/main.py
+++ b/samloader/main.py
@@ -46,7 +46,7 @@ def main():
if args.show_md5 and "Content-MD5" in r.headers:
print("MD5:", base64.b64decode(r.headers["Content-MD5"]).hex())
# TODO: use own progress bar instead of clint
- for chunk in progress.bar(r.iter_content(chunk_size=0x10000), expected_size=(size/0x10000)+1):
+ for chunk in progress.bar(r.iter_content(chunk_size=0x10000), expected_size=((size-dloffset)/0x10000)+1):
if chunk:
fd.write(chunk)
fd.flush()