projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a75821c
)
trunk: traffic plugin: fix linux pkt/err counters
author
octo
<octo>
Sat, 10 Jun 2006 13:59:15 +0000
(13:59 +0000)
committer
octo
<octo>
Sat, 10 Jun 2006 13:59:15 +0000
(13:59 +0000)
Thanks to Olaf Rempel for this patch.
src/traffic.c
patch
|
blob
|
history
diff --git
a/src/traffic.c
b/src/traffic.c
index
c7f7110
..
d12f5e4
100644
(file)
--- a/
src/traffic.c
+++ b/
src/traffic.c
@@
-388,11
+388,11
@@
static void traffic_read (void)
bytes_submit (device, incoming, outgoing);
incoming = atoll (fields[1]);
-
incom
ing = atoll (fields[9]);
+
outgo
ing = atoll (fields[9]);
packets_submit (device, incoming, outgoing);
incoming = atoll (fields[2]);
-
incom
ing = atoll (fields[10]);
+
outgo
ing = atoll (fields[10]);
errors_submit (device, incoming, outgoing);
}