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=refs%2Fpull%2F3694%2Fhead;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 ];