From: octo Date: Sat, 10 Jun 2006 13:59:15 +0000 (+0000) Subject: trunk: traffic plugin: fix linux pkt/err counters X-Git-Tag: svn-trunk~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b261c9f38a447a75ecf8e3982b4a18e9e162f28a;p=collectd.git trunk: traffic plugin: fix linux pkt/err counters Thanks to Olaf Rempel for this patch. --- diff --git a/src/traffic.c b/src/traffic.c index c7f71103..d12f5e4f 100644 --- a/src/traffic.c +++ b/src/traffic.c @@ -388,11 +388,11 @@ static void traffic_read (void) bytes_submit (device, incoming, outgoing); incoming = atoll (fields[1]); - incoming = atoll (fields[9]); + outgoing = atoll (fields[9]); packets_submit (device, incoming, outgoing); incoming = atoll (fields[2]); - incoming = atoll (fields[10]); + outgoing = atoll (fields[10]); errors_submit (device, incoming, outgoing); }