From 926b763f7401755f84af88b55a2c07cf6e10ff10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 14 Dec 2017 14:18:56 -0500 Subject: [PATCH] show hit ratio instead --- src/controllers/admin/cache.js | 2 +- src/views/admin/advanced/cache.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/admin/cache.js b/src/controllers/admin/cache.js index 4de2045518..baa461a21b 100644 --- a/src/controllers/admin/cache.js +++ b/src/controllers/admin/cache.js @@ -42,7 +42,7 @@ cacheController.get = function (req, res) { dump: req.query.debug ? JSON.stringify(objectCache.dump(), null, 4) : false, hits: utils.addCommas(String(objectCache.hits)), misses: utils.addCommas(String(objectCache.misses)), - missRatio: (1 - (objectCache.hits / (objectCache.hits + objectCache.misses))).toFixed(4), + hitRatio: (objectCache.hits / (objectCache.hits + objectCache.misses)).toFixed(4), }; } diff --git a/src/views/admin/advanced/cache.tpl b/src/views/admin/advanced/cache.tpl index 1c2d98ca93..0a07425a78 100644 --- a/src/views/admin/advanced/cache.tpl +++ b/src/views/admin/advanced/cache.tpl @@ -42,7 +42,7 @@ {objectCache.hits}
{objectCache.misses}
- {objectCache.missRatio}
+ {objectCache.hitRatio}
{objectCache.dump}