luci-app-statistics: adjust cpufreq graph for single/dual-core CPUs
The original data model definition assumed data from a quad-core CPU, which caused errors with single- and dual-core processors. Adjust the data model to work with also them. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
This commit is contained in:
parent
4343b2f13d
commit
d4bbf44fbb
1 changed files with 2 additions and 2 deletions
|
@ -10,8 +10,8 @@ function rrdargs( graph, plugin, plugin_instance, dtype )
|
|||
vlabel = "Frequency (Hz)",
|
||||
number_format = "%3.2lf%s",
|
||||
data = {
|
||||
instances = {
|
||||
cpufreq = { "3", "2", "1", "0" }
|
||||
sources = {
|
||||
cpufreq = { "" }
|
||||
},
|
||||
options = {
|
||||
cpufreq_0 = { color = "ff0000", title = "Core 0", noarea=true, overlay=true },
|
||||
|
|
Loading…
Reference in a new issue