luci-app-statistics: CPU plugin: backport defaults from master
Backport from master the current defaults based on 1cff1002
.
(The part related to 'idle' state is not backported, yet)
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
This commit is contained in:
parent
167c1fa4b4
commit
7460e9d720
2 changed files with 7 additions and 1 deletions
|
@ -17,6 +17,7 @@ reportbycpu = s:option( Flag, "ReportByCpu",
|
|||
translate("Report by CPU"),
|
||||
translate("By setting this, CPU is not aggregate of all processors on the system"))
|
||||
reportbycpu.default = 1
|
||||
reportbycpu.rmempty = false
|
||||
reportbycpu:depends( "enable", 1 )
|
||||
|
||||
-- collectd_cpu.reportbystate (ReportByState)
|
||||
|
@ -24,13 +25,15 @@ reportbystate = s:option( Flag, "ReportByState",
|
|||
translate("Report by state"),
|
||||
translate("When set to true, reports per-state metric (system, user, idle)"))
|
||||
reportbystate.default = 1
|
||||
reportbystate.rmempty = false
|
||||
reportbystate:depends( "enable", 1 )
|
||||
|
||||
-- collectd_cpu.valuespercentage (ValuesPercentage)
|
||||
valuespercentage = s:option( Flag, "ValuesPercentage",
|
||||
translate("Report in percent"),
|
||||
translate("When set to true, we request percentage values"))
|
||||
valuespercentage.default = 0
|
||||
valuespercentage.default = 1
|
||||
valuespercentage.rmempty = false
|
||||
valuespercentage:depends({ enable = 1, ReportByCpu = 1, ReportByState = 1 })
|
||||
|
||||
return m
|
||||
|
|
|
@ -62,6 +62,9 @@ config statistics 'collectd_contextswitch'
|
|||
|
||||
config statistics 'collectd_cpu'
|
||||
option enable '1'
|
||||
option ReportByCpu '1'
|
||||
option ReportByState '1'
|
||||
option ValuesPercentage '1'
|
||||
|
||||
config statistics 'collectd_cpufreq'
|
||||
option enable '0'
|
||||
|
|
Loading…
Reference in a new issue