Skip to content

Commit

Permalink
get cache.disk statistics for update
Browse files Browse the repository at this point in the history
  • Loading branch information
maxslimmer authored Jan 5, 2017
1 parent b2e03c9 commit 46b7716
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions applications/examples/controllers/appadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ def GetInHMS(seconds):
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']
Expand Down

0 comments on commit 46b7716

Please sign in to comment.