From 9baf9a3876313875875827980f217fdaa37575ce Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Wed, 29 Dec 2021 23:55:45 +0100 Subject: [PATCH] rio: convert Size to bytes for extent calculation Signed-off-by: Adam Rutkowski --- tests/functional/pyocf/rio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/pyocf/rio.py b/tests/functional/pyocf/rio.py index e53e95a..e857e02 100644 --- a/tests/functional/pyocf/rio.py +++ b/tests/functional/pyocf/rio.py @@ -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: