summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2019-08-01 00:49:05 +0300
committerHannu Nyman <hannu.nyman@iki.fi>2019-08-01 01:06:25 +0300
commit05cad423ce2582a2828f35291c825f8ce7eb38a1 (patch)
tree26d00d2ec26dba2279551c88ab006afc15cee8ab /applications/luci-app-statistics
parent4ca5727785ddeec33e26c6f8e5f5390ac2c75ed7 (diff)
luci-app-statistics: cpufreq: enhance additional data
* Use the new data series sorting and coloring options to display the frequencies in order and with matching coloring in different cores. * Fix the y-axis text and legend in the frequency usage graph 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.lua5
1 files changed, 3 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 40a6955e5..d3596637b 100644
--- a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/cpufreq.lua
+++ b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/cpufreq.lua
@@ -42,12 +42,13 @@ function rrdargs( graph, plugin, plugin_instance, dtype )
local percentage = {
title = "%H: Frequency distribution - core %pi",
alt_autoscale = true,
- vlabel = "Frequency (Hz)",
+ vlabel = "Percent",
number_format = "%5.2lf%%",
+ ordercolor = true,
data = {
types = { "percent" },
options = {
- percent = { title = "Frequency %di" },
+ percent = { title = "%di Hz", negweight = true },
}
}
}