From: Hannu Nyman Date: Tue, 8 Nov 2016 20:54:44 +0000 (+0200) Subject: luci-app-statistics: tweak 'cpufreq' number formatting X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4343b2f13d8c9151907068f8b6d9aca89e762b49;p=oweals%2Fluci.git luci-app-statistics: tweak 'cpufreq' number formatting Adjust number formatting to display >1GHz values better. Signed-off-by: Hannu Nyman --- 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 6e6363010..bd30ededa 100644 --- a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/cpufreq.lua +++ b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/cpufreq.lua @@ -8,7 +8,7 @@ function rrdargs( graph, plugin, plugin_instance, dtype ) title = "%H: Processor frequency", alt_autoscale = true, vlabel = "Frequency (Hz)", - number_format = "%4.0lf%s", + number_format = "%3.2lf%s", data = { instances = { cpufreq = { "3", "2", "1", "0" }