summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2019-08-14 18:53:03 +0300
committerHannu Nyman <hannu.nyman@iki.fi>2019-08-14 19:00:09 +0300
commit24c0e7ca4c9d9fbffc94133e710facdb039fedab (patch)
treeb0483cef388f46a5a4a649c0b3e00d28f5aaebb5 /applications/luci-app-statistics
parentf929298318fb755b05fe53b33971662d9df18211 (diff)
luci-app-statistics: cpufreq: tweak graphs
* Frequency usage percentage stats are by kHz instead of Hz. Correct the labels. (Linux natively uses kHz for CPU frequency stats, but collectd scales the current frequency stats item to Hz.) * Show frequency usage percentage graph before the transition counts, as it is more descriptive. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'applications/luci-app-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 d3596637b2..cb7ae53afa 100644
--- a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/cpufreq.lua
+++ b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/cpufreq.lua
@@ -48,12 +48,12 @@ function rrdargs( graph, plugin, plugin_instance, dtype )
data = {
types = { "percent" },
options = {
- percent = { title = "%di Hz", negweight = true },
+ percent = { title = "%di kHz", negweight = true },
}
}
}
- return { cpufreq, transitions, percentage }
+ return { cpufreq, percentage, transitions }
else
return { cpufreq }
end