diff options
Diffstat (limited to 'applications/luci-app-statistics/htdocs/luci-static/resources/view')
-rw-r--r-- | applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/cpu.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/cpu.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/cpu.js index 7b2963cad2..e013e80cd9 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/cpu.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/cpu.js @@ -23,8 +23,16 @@ return baseclass.extend({ o.rmempty = false; o.depends('enable', '1'); + o = s.option(form.Flag, 'ShowIdle', _('Show Idle state'), + _('Report also the value for the idle metric')); + o.default = '0'; + o.rmempty = false; + o.depends({'enable': '1', 'ReportByState': '1'}); + o = s.option(form.Flag, 'ValuesPercentage', _('Report in percent'), _('When set to true, we request percentage values')); + o.default = '1'; + o.rmempty = false; o.depends({ 'enable': '1', 'ReportByCpu': '1', 'ReportByState': '1' }); }, |