Code

tcpconns plugin: Only chose between netlink / proc on the first iteration.
authorFlorian Forster <octo@collectd.org>
Mon, 27 Aug 2012 06:35:29 +0000 (08:35 +0200)
committerFlorian Forster <octo@collectd.org>
Mon, 27 Aug 2012 06:36:50 +0000 (08:36 +0200)
commitf52ebcb1bc8e170909078eb3eb2e3d103e4ca9d2
treeadb4c08ea6891225bc1e0ced65a611798f31e1d6
parent44f3746a9b683de34128bc34b1135afa0a10060d
tcpconns plugin: Only chose between netlink / proc on the first iteration.

Rather than going for netlink each iteration and fall back to /proc, try
this on the first iteration only and stick with the result afterwards.
Also contains some improvements to the error handling / reporting.
src/tcpconns.c