From: Jo-Philipp Wich Date: Tue, 24 Sep 2019 06:10:16 +0000 (+0200) Subject: luci-app-statistics: show decimal in iptables values X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dfe41b3b88972b9ff77c499b2b9ee4a2cf4da28d;p=oweals%2Fluci.git luci-app-statistics: show decimal in iptables values Fixes: #3109 Signed-off-by: Jo-Philipp Wich --- 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 7218bfd44..68a4ecf62 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 = {