luci-app-statistics: adjust cpufreq graph for single/dual-core CPUs
[project/luci.git] / applications / luci-app-statistics / luasrc / statistics / rrdtool / definitions / cpufreq.lua
index bd30ede..25a72d2 100644 (file)
@@ -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 },