From 40a4677a25924c057b8d23d6f5e0719572b483f2 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 (cherry picked from commit d09f3b64b2871e0ba642f9112b0c334ec9832f23) --- .../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 107983342d..ceb13b56fa 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 @@ -33,7 +33,7 @@ return baseclass.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.30.2