summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-status/htdocs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-08-11 18:59:13 +0200
committerGitHub <noreply@github.com>2021-08-11 18:59:13 +0200
commit755d12c79cc43196750267c1e990816bb40baea0 (patch)
tree44bba6df09b9f7213a9fa59172f7d1bf7658bc1f /modules/luci-mod-status/htdocs
parent6045f584ce291d47ff37cfcfbf2b871f804f3457 (diff)
parent61425793a78ea60b564f9767b60b001da0e4cc96 (diff)
Merge pull request #5254 from selanf/x04
Diffstat (limited to 'modules/luci-mod-status/htdocs')
-rw-r--r--modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/20_memory.js4
1 files changed, 3 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 3e89578002..0a885c01c9 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
@@ -34,9 +34,11 @@ return baseclass.extend({
var fields = [
_('Total Available'), (mem.available) ? mem.available : (mem.total && mem.free && mem.buffered) ? mem.free + mem.buffered : 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
];
+ if (mem.buffered)
+ fields.push(_('Buffered'), mem.buffered, mem.total);
+
if (mem.cached)
fields.push(_('Cached'), mem.cached, mem.total);