mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-31 12:19:42 +02:00
Improve the progress calculator for multithreaded progress.
This commit is contained in:
@@ -214,7 +214,8 @@ class DataLayerInterface(configuration.ConfigurableInterface, validity.ValidityR
|
||||
def _scan_chunk(self, scanner, min_address, max_address, progress, iterator_value):
|
||||
length = min(scanner.chunk_size + scanner.overlap, max_address - iterator_value)
|
||||
chunk = self.read(iterator_value, length)
|
||||
progress.value = iterator_value
|
||||
# Don't include the overlaps, or we'll go over 100%
|
||||
progress.value += min(scanner.chunk_size, max_address - iterator_value)
|
||||
return list(scanner(chunk, iterator_value))
|
||||
|
||||
def _scan_metric(self, _scanner, min_address, max_address, value):
|
||||
|
||||
Reference in New Issue
Block a user