rio: fix size comparison in

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga 2022-01-03 19:27:07 +01:00 committed by Adam Rutkowski
parent cd0551e72e
commit 765d1c5d77

View File

@ -134,7 +134,7 @@ class Rio:
if self.jobspec.time_based: if self.jobspec.time_based:
self.finish_time = datetime.now() + self.jobspec.time self.finish_time = datetime.now() + self.jobspec.time
else: else:
if self.jobspec.io_size != 0: if int(self.jobspec.io_size) != 0:
self.io_target = min( self.io_target = min(
self.jobspec.io_size, self.jobspec.size - self.jobspec.offset self.jobspec.io_size, self.jobspec.size - self.jobspec.offset
) )