2014-06-11 14:42:42 +00:00
|
|
|
--- a/src/ping.c
|
|
|
|
+++ b/src/ping.c
|
collectd: update to 5.5.0
Update collectd, base of Luci statistics, to 5.5.0.
Patches have been refreshed.
write-graphite plugin is now enabled. (see #1351)
I have compile-tested all plugins with ar71xx,
and real-life tested the following plugins:
Conntrack, Processor (CPU), DNS, Interfaces, Wireless, System Load,
Memory, Ping, Uptime
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-07-16 12:15:22 +00:00
|
|
|
@@ -656,7 +656,7 @@ static int ping_read (void) /* {{{ */
|
2014-06-11 14:42:42 +00:00
|
|
|
/ ((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);
|