summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-03-01 16:26:19 +0100
committerGitHub <noreply@github.com>2020-03-01 16:26:19 +0100
commit6a876eb30dcb90d5c2524920e1955b3d4ddf9331 (patch)
tree8d09fcb3d834d32cd7c685a8d6babaa224ee2658 /modules
parent2c4ba6e524365906f168925cbf244b4c2f1b41cf (diff)
parentd09f3b64b2871e0ba642f9112b0c334ec9832f23 (diff)
Merge pull request #3694 from howard0su/issue3682
luci-base: Show used memory instead of Free
Diffstat (limited to 'modules')
-rw-r--r--modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/20_memory.js2
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 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
];