From: Hannu Nyman Date: Thu, 1 Aug 2019 15:15:59 +0000 (+0300) Subject: luci-app-statistics: cpufreq: enhance additional data X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a4dc8f0d8da7da7a3eacce226c5f131431a2409a;p=oweals%2Fluci.git 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 (cherry picked from commit 05cad423ce2582a2828f35291c825f8ce7eb38a1) --- 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 }, } } }