luci-app-statistics: treat APC UPS "host" setting as single value option
[project/luci.git] / applications / luci-app-statistics / htdocs / luci-static / resources / view / statistics / plugins / cpu.js
index 7b2963cad221329a3ac538a78985a92f8d342c1a..e013e80cd90784af6a83507a84a43be16a0faf5a 100644 (file)
@@ -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' });
        },