Ensure the progress value for translation layer scanning is correct.

This commit is contained in:
Mike Auty
2016-12-08 12:08:42 +00:00
parent 631ae07a26
commit 555f587b15
+1 -1
View File
@@ -237,7 +237,7 @@ class TranslationLayerInterface(DataLayerInterface, metaclass = ABCMeta):
chunk = self._context.memory.read(layer, mapped_offset, length)
if progress_callback:
progress += length
progress_callback(progress / total_size)
progress_callback((progress * 100) / total_size)
for x in scanner(chunk, offset):
yield x