From: octo Date: Thu, 25 May 2006 11:53:25 +0000 (+0000) Subject: traffic plugin: Store the packet- and error-counter for the proc interface, too. X-Git-Tag: svn-trunk~21 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=78e364e3923b644b374bcac2f01a768ab5a1189c;p=collectd.git traffic plugin: Store the packet- and error-counter for the proc interface, too. --- diff --git a/src/traffic.c b/src/traffic.c index cefff898..5fdcb5df 100644 --- a/src/traffic.c +++ b/src/traffic.c @@ -380,13 +380,20 @@ static void traffic_read (void) numfields = strsplit (dummy, fields, 16); - if (numfields < 9) + if (numfields < 11) continue; incoming = atoll (fields[0]); outgoing = atoll (fields[8]); - bytes_submit (device, incoming, outgoing); + + incoming = atoll (fields[1]); + incoming = atoll (fields[9]); + packets_submit (device, incoming, outgoing); + + incoming = atoll (fields[2]); + incoming = atoll (fields[10]); + errors_submit (device, incoming, outgoing); } fclose (fh);