From 46b7716b1db562d193b99da6d5640fa6645b2c51 Mon Sep 17 00:00:00 2001 From: maxslimmer Date: Wed, 4 Jan 2017 18:02:23 -0800 Subject: [PATCH] get cache.disk statistics for update --- applications/examples/controllers/appadmin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/applications/examples/controllers/appadmin.py b/applications/examples/controllers/appadmin.py index 73303f535..a602a95c5 100644 --- a/applications/examples/controllers/appadmin.py +++ b/applications/examples/controllers/appadmin.py @@ -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']