Code

netlink plugin: Yet another fix. `if_dropped' was getting bytes..
authorFlorian Forster <octo@huhu.verplant.org>
Fri, 31 Aug 2007 08:42:01 +0000 (10:42 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Fri, 31 Aug 2007 08:42:01 +0000 (10:42 +0200)
src/netlink.c

index 3c8a1fcdf01893a83bc0992f1a78982da647ca72..1a053d24272e1182f169a439f89125746a666840 100644 (file)
@@ -233,7 +233,7 @@ static int link_filter (const struct sockaddr_nl *sa, struct nlmsghdr *nmh,
 
   if (check_ignorelist (dev, "if_detail", NULL) == 0)
   {
-    submit_two (dev, "if_dropped", NULL, stats->rx_bytes, stats->tx_bytes);
+    submit_two (dev, "if_dropped", NULL, stats->rx_dropped, stats->tx_dropped);
     submit_one (dev, "if_multicast", NULL, stats->multicast);
     submit_one (dev, "if_collisions", NULL, stats->collisions);