Code

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 c7f71103852ee73421668dcfc3d3fff683085290..d12f5e4faeaa6166d4a30327f34d6ce0923d851c 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);
        }