Update collectd, the backbone of Luci statistics, to 5.5.1 Refresh patches. Main changes: - Remove 500-upstream-parallel-build-fix.patch (implemented upstream) - Add 600-fix-libmodbus-detection.patch to revert an upstream change that broke libmodbus detection in collectd's configure script Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
11 lines
436 B
Diff
11 lines
436 B
Diff
--- a/src/ping.c
|
|
+++ b/src/ping.c
|
|
@@ -658,7 +658,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);
|