netapp image cache cleaning start thresholds does not work
Fix avl_percent value. Change-Id: Ie886124e626e4883b81d5a1ba203621f104e5ef7 Closes-Bug: #1623739
This commit is contained in:
parent
5aa16450cd
commit
da7a668137
@ -407,7 +407,7 @@ class NetAppNfsDriver(driver.ManageableVD,
|
|||||||
try:
|
try:
|
||||||
total_size, total_avl = \
|
total_size, total_avl = \
|
||||||
self._get_capacity_info(share)
|
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:
|
if avl_percent <= thres_size_perc_start:
|
||||||
LOG.info(_LI('Cleaning cache for share %s.'), share)
|
LOG.info(_LI('Cleaning cache for share %s.'), share)
|
||||||
eligible_files = self._find_old_cache_files(share)
|
eligible_files = self._find_old_cache_files(share)
|
||||||
|
Loading…
Reference in New Issue
Block a user