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 18:03:03 +0000 (21:03 +0300)
commitdd908ced91d4448cf5eccc97addd8b8210fd1c7e
tree9cfeb69b2f0fa35f620518e36721eefc1b943534
parentc0057ae7a22489fe5a062e03e70f37852b154c70
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>
(cherry picked from commit e6f30bb7f39c67e1b2eaf312aa8d1f06e7b0a0ab)
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/cpufreq.lua
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/cpufreq.lua