X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Finterface.c;h=90dc139dccc0131ff7b83a8921b8333beb615c84;hb=e7f7ecc1cac73841cdebd7e0462af4989532a107;hp=1c01f6ff773cf8e5bb92697b73e21e4bacee1663;hpb=42a7c90f4478e98dc970927cfda7ec2e1081f364;p=collectd.git diff --git a/src/interface.c b/src/interface.c index 1c01f6ff..90dc139d 100644 --- a/src/interface.c +++ b/src/interface.c @@ -190,7 +190,7 @@ static int interface_read (void) struct ifaddrs *if_list; struct ifaddrs *if_ptr; -/* Darin/Mac OS X and possible other *BSDs */ +/* Darwin/Mac OS X and possible other *BSDs */ #if HAVE_STRUCT_IF_DATA # define IFA_DATA if_data # define IFA_RX_BYTES ifi_ibytes @@ -286,6 +286,10 @@ static int interface_read (void) incoming = atoll (fields[2]); outgoing = atoll (fields[10]); if_submit (device, "if_errors", incoming, outgoing); + + incoming = atoll (fields[3]); + outgoing = atoll (fields[11]); + if_submit (device, "if_dropped", incoming, outgoing); } fclose (fh);