From 9def6faa4e3d35242ff4690ced5c87851441e800 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Fri, 9 Aug 2019 10:05:02 +0000 Subject: [PATCH] luci-app-statistics: scale up ping_droprate to range 0-100 In original collectd, values of this metric are in range 0-1. OpenWrt previously have a custom patch scaling them up to range 0-100. That patch has been removed to align with possibly other deployments. Ref: https://github.com/openwrt/packages/pull/9677 Signed-off-by: Yousong Zhou --- .../luasrc/statistics/rrdtool/definitions/ping.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/ping.lua b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/ping.lua index c3645e408..e290af549 100644 --- a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/ping.lua +++ b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/ping.lua @@ -27,7 +27,7 @@ function rrdargs( graph, plugin, plugin_instance, dtype ) data = { types = { "ping_droprate" }, options = { ping_droprate = { - noarea = true, overlay = true, title = "%di" } } + noarea = true, overlay = true, title = "%di", transform_rpn = "100,*" } } } } } end -- 2.25.1