Ensure the non-multithreaded scanner works the same way as the multithreaded one.

This commit is contained in:
Mike Auty
2016-12-25 17:26:06 +00:00
parent a4f27e73f4
commit f03f99e64c
+2 -2
View File
@@ -175,10 +175,10 @@ class DataLayerInterface(configuration.ConfigurableInterface, validity.ValidityR
for result in result.get():
yield from result
else:
for block in range(min_address, max_address, scanner.chunk_size):
for value in scan_iterator():
if progress_callback:
progress_callback(scan_metric(progress.value))
yield from scan_chunk(block)
yield from scan_chunk(value)
def _scan_iterator(self, scanner, min_address, max_address):
return range(min_address, max_address, scanner.chunk_size)