rio: convert Size to bytes for extent calculation

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
Adam Rutkowski 2021-12-29 23:55:45 +01:00 committed by Jan Musial
parent 9360e55851
commit 9baf9a3876

View File

@ -35,7 +35,7 @@ class IoGen:
self.random = random
self.randommap = randommap
gen = list(range(extent[0], extent[1], blocksize))
gen = list(range(extent[0].B, extent[0].B + extent[1].B, blocksize.B))
self.cycle_len = len(gen)
if random: