From d09f3b64b2871e0ba642f9112b0c334ec9832f23 Mon Sep 17 00:00:00 2001 From: Howard Su Date: Fri, 28 Feb 2020 22:06:52 +0800 Subject: [PATCH] luci-base: Show used memory instead of Free This makes sure solid/blue bar shows the used memory. Signed-off-by: Howard Su --- .../luci-static/resources/view/status/include/20_memory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/20_memory.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/20_memory.js index b2ebdec71..4219a8797 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/20_memory.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/20_memory.js @@ -32,7 +32,7 @@ return L.Class.extend({ var fields = [ _('Total Available'), (mem.available) ? mem.available : (mem.total && mem.free && mem.buffered) ? mem.free + mem.buffered : null, mem.total, - _('Free'), (mem.total && mem.free) ? mem.free : null, mem.total, + _('Used'), (mem.total && mem.free) ? (mem.total - mem.free) : null, mem.total, _('Buffered'), (mem.total && mem.buffered) ? mem.buffered : null, mem.total ]; -- 2.25.1