mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-13 05:07:38 +02:00
ResourceAccessor: Fix downloading progress indicator.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user