From 24c0e7ca4c9d9fbffc94133e710facdb039fedab Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Wed, 14 Aug 2019 18:53:03 +0300 Subject: [PATCH] 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 --- .../luasrc/statistics/rrdtool/definitions/cpufreq.lua | 4 ++-- 1 file 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 d3596637b..cb7ae53af 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 -- 2.25.1