From b261c9f38a447a75ecf8e3982b4a18e9e162f28a Mon Sep 17 00:00:00 2001 From: octo Date: Sat, 10 Jun 2006 13:59:15 +0000 Subject: [PATCH] trunk: traffic plugin: fix linux pkt/err counters Thanks to Olaf Rempel for this patch. --- src/traffic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.11.0