luci-app-statistics: cpufreq: changes in data structure
authorHannu Nyman <hannu.nyman@iki.fi>
Tue, 30 Jul 2019 17:47:02 +0000 (20:47 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Tue, 30 Jul 2019 17:47:02 +0000 (20:47 +0300)
commite6f30bb7f39c67e1b2eaf312aa8d1f06e7b0a0ab
treed6514712bb7d0e5ecacc69cb603f4590407679a7
parent15088a31b84f786ea5924ee2f2f61df5cff32d7a
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>
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/cpufreq.lua
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/cpufreq.lua