From: Howard Su Date: Fri, 28 Feb 2020 14:06:52 +0000 (+0800) Subject: luci-base: Show used memory instead of Free X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d09f3b64b2871e0ba642f9112b0c334ec9832f23;p=oweals%2Fluci.git luci-base: Show used memory instead of Free This makes sure solid/blue bar shows the used memory. Signed-off-by: Howard Su --- 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 ];