get cache.disk statistics value for update and display

This commit is contained in:
maxslimmer
2017-01-04 18:03:37 -08:00
committed by GitHub
parent 46b7716b1d
commit 0165cfadef

View File

@@ -465,6 +465,7 @@ def ccache():
ram['keys'].append((key, GetInHMS(time.time() - value[0])))
for key in cache.disk.storage:
value = cache.disk.storage[key]
if key == 'web2py_cache_statistics' and isinstance(value[1], dict):
disk['hits'] = value[1]['hit_total'] - value[1]['misses']
disk['misses'] = value[1]['misses']