summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2019-07-30 20:47:02 +0300
committerHannu Nyman <hannu.nyman@iki.fi>2019-07-30 20:47:02 +0300
commite6f30bb7f39c67e1b2eaf312aa8d1f06e7b0a0ab (patch)
treed6514712bb7d0e5ecacc69cb603f4590407679a7 /applications/luci-app-statistics/luasrc/model/cbi/luci_statistics
parent15088a31b84f786ea5924ee2f2f61df5cff32d7a (diff)
luci-app-statistics: cpufreq: changes in data structure
Collectd 5.9.0 changed the data structure of the cpufreq plugin: CPU cores are now handled as separate plugin instances. There are also new data items per core: * time spent at each frequency * amount of frequency transitions Enable these new data items, but initially hide them behind a new config option "ExtraItems" (default: disabled), as the amount of graphs in multi-core systems could be rather large. Note that the frequencies are not (yet) sorted, so the information value of the time-spent graph is semi-random. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'applications/luci-app-statistics/luasrc/model/cbi/luci_statistics')
-rw-r--r--applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/cpufreq.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/cpufreq.lua b/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/cpufreq.lua
index d1116630b4..435f186e0d 100644
--- a/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/cpufreq.lua
+++ b/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/cpufreq.lua
@@ -11,4 +11,10 @@ s = m:section( NamedSection, "collectd_cpufreq", "luci_statistics" )
enable = s:option( Flag, "enable", translate("Enable this plugin") )
enable.default = 0
+-- collectd_cpufreq.extraitems
+extraitems = s:option( Flag, "ExtraItems", translate("Extra items"), translate("More details about frequency usage and transitions"))
+extraitems.default = "0"
+extraitems.optional = true
+extraitems:depends( "enable", 1 )
+
return m