Merge "netapp image cache cleaning start thresholds does not work"
This commit is contained in:
commit
a491f3e60f
@ -439,7 +439,7 @@ class NetAppNfsDriver(driver.ManageableVD,
|
||||
try:
|
||||
total_size, total_avl = \
|
||||
self._get_capacity_info(share)
|
||||
avl_percent = int((total_avl / total_size) * 100)
|
||||
avl_percent = int((float(total_avl) / total_size) * 100)
|
||||
if avl_percent <= thres_size_perc_start:
|
||||
LOG.info(_LI('Cleaning cache for share %s.'), share)
|
||||
eligible_files = self._find_old_cache_files(share)
|
||||
|
Loading…
Reference in New Issue
Block a user