rio: fix size comparison in
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
cd0551e72e
commit
765d1c5d77
@ -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
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user