summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-02-23 12:10:35 +0100
committerJo-Philipp Wich <jo@mein.io>2020-02-23 12:10:35 +0100
commit0c3ce36ea88425876c089eae9205711957fa2975 (patch)
tree90f1e6374eafca04dd567a606d6975eb5a904328 /applications/luci-app-statistics
parent72da3c4c5509a4fe9d779e03d76a97854022fafe (diff)
luci-app-statistics: cpufreq: re-add ExtraItems config
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-statistics')
-rw-r--r--applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/cpufreq.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/cpufreq.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/cpufreq.js
index d336f97de..64c260877 100644
--- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/cpufreq.js
+++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/cpufreq.js
@@ -5,7 +5,20 @@ return L.Class.extend({
title: _('CPU Frequency Plugin Configuration'),
description: _('This plugin collects statistics about the processor frequency scaling.'),
+ addFormOptions: function(s) {
+ var o;
+
+ o = s.option(form.Flag, 'enable', _('Enable this plugin'));
+ o.default = '0';
+
+ o = s.option(form.Flag, 'ExtraItems', _('Extra items'),
+ _('More details about frequency usage and transitions'));
+ o.depends('enable', '1');
+ },
+
configSummary: function(section) {
- return _('CPU frequency monitoring enabled');
+ return (section.ExtraItems == '1')
+ ? _('Detailled CPU frequency monitoring enabled')
+ : _('Simple CPU frequency monitoring enabled');
}
});