Commit 8fa75180 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Fix progress bar calculation bug in download

Download progress bar was using the number of missing blocks as
its length.
It now uses the total number of blocks in the file, instead.
parent bb681d60
......@@ -452,12 +452,13 @@ class PithosClient(PithosRestClient):
return obj_headers
if upload_cb:
upload_gen = upload_cb(len(missing))
for i in range(len(missing), len(hashmap['hashes']) + 1):
upload_gen = upload_cb(len(hashmap['hashes']))
for i in range(len(hashmap['hashes']) + 1 - len(missing)):
upload_gen = None
sendlog.debug('Progress bar failure')
upload_gen = None
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment