From 9334add1fc1b13b4d64b49093fee9c90e7e8628b Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Sat, 16 Nov 2019 11:19:54 +0000 Subject: [PATCH] ResourceAccessor: Fix downloading progress indicator. --- volatility/framework/layers/resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volatility/framework/layers/resources.py b/volatility/framework/layers/resources.py index 1e9542515..27655c8a8 100644 --- a/volatility/framework/layers/resources.py +++ b/volatility/framework/layers/resources.py @@ -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()