luci-app-statistics: show decimal in iptables values
authorJo-Philipp Wich <jo@mein.io>
Tue, 24 Sep 2019 06:10:16 +0000 (08:10 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 24 Sep 2019 06:10:16 +0000 (08:10 +0200)
Fixes: #3109
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/iptables.lua

index 7218bfd4418599b368d971c52f2faaa4a9f73ae1..68a4ecf625f0e7e685e3197bc2d71da12ef7c4c5 100644 (file)
@@ -13,8 +13,8 @@ function rrdargs( graph, plugin, plugin_instance, dtype )
                {
                        title = "%H: Firewall: Processed bytes in %pi",
                        vlabel = "Bytes/s",
-                       number_format = "%5.0lf%sB/s",
-                       totals_format = "%5.0lf%sB",
+                       number_format = "%5.1lf%sB/s",
+                       totals_format = "%5.1lf%sB",
                        data = { 
                                types = { "ipt_bytes" },
                                options = {
@@ -30,7 +30,7 @@ function rrdargs( graph, plugin, plugin_instance, dtype )
                        title = "%H: Firewall: Processed packets in %pi",
                        vlabel = "Packets/s",
                        number_format = "%5.1lf P/s",
-                       totals_format = "%5.0lf%s",
+                       totals_format = "%5.1lf%s",
                        data = {
                                types = { "ipt_packets" },
                                options = {