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 6e6363010996f84f87a2ccf1afb2865b7066ce00..bd30ededa0a3f5791b421eeb3e82e4273d9d2169 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" }