trunk: traffic plugin: fix linux pkt/err counters
authorocto <octo>
Sat, 10 Jun 2006 13:59:15 +0000 (13:59 +0000)
committerocto <octo>
Sat, 10 Jun 2006 13:59:15 +0000 (13:59 +0000)
Thanks to Olaf Rempel for this patch.

src/traffic.c

index c7f7110..d12f5e4 100644 (file)
@@ -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);
        }