summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2023-10-09 23:16:28 +0300
committerHannu Nyman <hannu.nyman@iki.fi>2023-10-09 23:16:36 +0300
commit08540c44629ad0fedf5feb2b535c2df182ac3973 (patch)
treef7fb1e31dd8fee0141748ca35895c86776285dce /applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins
parentf235491381f5836701f2fb1cb2e2aed432ef127d (diff)
luci-app-statistics: memory: make hiding 'free' configurable
Make hiding the 'free' memory configurable. Set default as disabled, shown in graph which always scales to 100%. If enabled, the graph scales to actually used memory, which enables a more detailed view to memory usage. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins')
-rw-r--r--applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/memory.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/memory.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/memory.js
index a4a8eb2761..864857faa3 100644
--- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/memory.js
+++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/memory.js
@@ -11,6 +11,11 @@ return baseclass.extend({
o = s.option(form.Flag, 'enable', _('Enable this plugin'));
+ o = s.option(form.Flag, 'HideFree', _('Hide free memory'),
+ _('Hiding the free memory item makes the graph to scale to actual memory usage, not to 100%.'));
+ o.default = '0';
+ o.rmempty = false;
+
o = s.option(form.Flag, 'ValuesAbsolute', _('Absolute values'), _('When set to true, we request absolute values'));
o.default = '1';
o.depends('enable', '1');