summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/luasrc/statistics
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2016-11-10 20:34:08 +0200
committerHannu Nyman <hannu.nyman@iki.fi>2016-11-10 20:34:08 +0200
commitd4bbf44fbbac312633a4d104c55734c61f712c9e (patch)
treee235d4410cf9d4e04b6ed6f6e085c82d0a422a44 /applications/luci-app-statistics/luasrc/statistics
parent4343b2f13d8c9151907068f8b6d9aca89e762b49 (diff)
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>
Diffstat (limited to 'applications/luci-app-statistics/luasrc/statistics')
-rw-r--r--applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/cpufreq.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/cpufreq.lua b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/cpufreq.lua
index bd30ededa0..25a72d2285 100644
--- a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/cpufreq.lua
+++ b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/cpufreq.lua
@@ -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 },