diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2019-08-09 10:05:02 +0000 |
---|---|---|
committer | Yousong Zhou <yszhou4tech@gmail.com> | 2019-08-10 09:53:14 +0800 |
commit | 9def6faa4e3d35242ff4690ced5c87851441e800 (patch) | |
tree | be3c856b9c4d7bfa4b435dff2008e2743dea99e8 | |
parent | 15e95260896220072bd43225229722f313b6b9e1 (diff) |
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 <yszhou4tech@gmail.com>
-rw-r--r-- | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/ping.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |