ResourceAccessor: Fix downloading progress indicator.

This commit is contained in:
Mike Auty
2019-11-20 20:04:14 +00:00
committed by ikelos
parent 22fd48516e
commit 9334add1fc
+1 -1
View File
@@ -95,7 +95,7 @@ class ResourceAccessor(object):
if not block:
break
if self._progress_callback:
self._progress_callback(count / max(count, int(content_length)),
self._progress_callback(count * 100 / max(count, int(content_length)),
"Reading file {}".format(url))
cache_file.write(block)
cache_file.close()