From dfe41b3b88972b9ff77c499b2b9ee4a2cf4da28d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 24 Sep 2019 08:10:16 +0200 Subject: luci-app-statistics: show decimal in iptables values Fixes: #3109 Signed-off-by: Jo-Philipp Wich --- .../luasrc/statistics/rrdtool/definitions/iptables.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'applications/luci-app-statistics') diff --git a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/iptables.lua b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/iptables.lua index 7218bfd441..68a4ecf625 100644 --- a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/iptables.lua +++ b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/iptables.lua @@ -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 = { -- cgit v1.2.3