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: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F3694%2Fhead;p=project%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 b2ebdec710..4219a8797d 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 ];