luci-app-statistics: cpufreq: re-add ExtraItems config
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
72da3c4c55
commit
0c3ce36ea8
1 changed files with 14 additions and 1 deletions
|
@ -5,7 +5,20 @@ return L.Class.extend({
|
||||||
title: _('CPU Frequency Plugin Configuration'),
|
title: _('CPU Frequency Plugin Configuration'),
|
||||||
description: _('This plugin collects statistics about the processor frequency scaling.'),
|
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) {
|
configSummary: function(section) {
|
||||||
return _('CPU frequency monitoring enabled');
|
return (section.ExtraItems == '1')
|
||||||
|
? _('Detailled CPU frequency monitoring enabled')
|
||||||
|
: _('Simple CPU frequency monitoring enabled');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue