pyocf: test_eviction fixup

Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
This commit is contained in:
Michal Rakowski
2020-04-15 23:50:11 +02:00
parent 67577fc1ef
commit 0f85a73669
2 changed files with 32 additions and 18 deletions

View File

@@ -136,6 +136,10 @@ class Size:
def sectors(self):
return self.bytes // self._SECTOR_SIZE
@property
def blocks_4k(self):
return self.bytes // 4096
def __str__(self):
if self.bytes < self._KiB:
return "{} B".format(self.B)