diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2019-08-09 13:32:56 +0000 |
---|---|---|
committer | Yousong Zhou <yszhou4tech@gmail.com> | 2019-08-10 09:52:22 +0800 |
commit | 2f66fa5c233e707e45485126e50daf1276f77da1 (patch) | |
tree | c0ffd5ce70893e15c731120587ca7d5eb2e63174 /utils | |
parent | 65834147973146925f458e37adaf30f4ab59d2cb (diff) |
collectd: remove the patch scaling ping_droprate from 0-1 to 0-100
Upstream project's behaviour of reporting this data source in range 0-1
is used by at least CentOS 7 collectd 5.8.1, very likely the same
behaviour is also in widely use by other distributions.
The change is important for providing consistent experience across
collectd deployments on different environments
Ref: https://github.com/collectd/collectd/pull/3244
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/collectd/patches/920-fix-ping-droprate.patch | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/utils/collectd/patches/920-fix-ping-droprate.patch b/utils/collectd/patches/920-fix-ping-droprate.patch deleted file mode 100644 index 6b1e9a0d4..000000000 --- a/utils/collectd/patches/920-fix-ping-droprate.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/src/ping.c -+++ b/src/ping.c -@@ -648,7 +648,7 @@ static int ping_read(void) /* {{{ */ - ((double)(pkg_recv * (pkg_recv - 1)))); - - /* Calculate drop rate. */ -- droprate = ((double)(pkg_sent - pkg_recv)) / ((double)pkg_sent); -+ droprate = ((double)(pkg_sent - pkg_recv)) * 100 / ((double)pkg_sent); - - submit(hl->host, "ping", latency_average); - submit(hl->host, "ping_stddev", latency_stddev); |