luci-app-statistics: clean and fix plugin configurations
[project/luci.git] / applications / luci-app-statistics / htdocs / luci-static / resources / view / statistics / plugins / cpu.js
index 71e9c47f3c317cea8e0e6377bb2033ed81246b25..3a27a67dfe3a75814634ba27ab9c7d415f426381 100644 (file)
@@ -9,21 +9,21 @@ return L.Class.extend({
                var o;
 
                o = s.option(form.Flag, 'enable', _('Enable this plugin'));
-               o.default = '0';
 
                o = s.option(form.Flag, 'ReportByCpu', _('Report by CPU'),
                        _('By setting this, CPU is not aggregate of all processors on the system'));
                o.default = '1';
+               o.rmempty = false;
                o.depends('enable', '1');
 
                o = s.option(form.Flag, 'ReportByState', _('Report by state'),
                        _('When set to true, reports per-state metric (system, user, idle)'));
                o.default = '1';
+               o.rmempty = false;
                o.depends('enable', '1');
 
                o = s.option(form.Flag, 'ValuesPercentage', _('Report in percent'),
                        _('When set to true, we request percentage values'));
-               o.default = '0';
                o.depends({ 'enable': '1', 'ReportByCpu': '1', 'ReportByState': '1' });
        },