luci-app-statistics: tweak 'cpufreq' number formatting
authorHannu Nyman <hannu.nyman@iki.fi>
Tue, 8 Nov 2016 20:54:44 +0000 (22:54 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Tue, 8 Nov 2016 20:54:44 +0000 (22:54 +0200)
Adjust number formatting to display >1GHz values better.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/cpufreq.lua

index 6e63630..bd30ede 100644 (file)
@@ -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" }