diff options
author | Howard Su <howard0su@gmail.com> | 2020-02-28 22:06:52 +0800 |
---|---|---|
committer | Howard Su <howard0su@gmail.com> | 2020-03-01 08:52:07 +0800 |
commit | d09f3b64b2871e0ba642f9112b0c334ec9832f23 (patch) | |
tree | 8d2bcb4b1377810e02d042a7519ad5b81bd33488 /modules/luci-mod-status | |
parent | 5a2d22f66a9127b36383af26c72eeb9e512b0874 (diff) |
luci-base: Show used memory instead of Free
This makes sure solid/blue bar shows the used memory.
Signed-off-by: Howard Su <howard0su@gmail.com>
Diffstat (limited to 'modules/luci-mod-status')
-rw-r--r-- | modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/20_memory.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 ]; |