processes plugin: Read number of threads from /proc/$pid/stat as a fallback.
authorFlorian Forster <octo@collectd.org>
Sat, 6 Jun 2015 19:37:00 +0000 (21:37 +0200)
committerFlorian Forster <octo@collectd.org>
Sat, 6 Jun 2015 19:37:00 +0000 (21:37 +0200)
commit2c6f2a6c9ccfe8cfe4f605683e0e2e365da11f82
treec0e289273717e3c0decb508a3d0e2d230c61e484
parentcce1f2703e23abc87d1bdfbfe8ddd047cfac723c
processes plugin: Read number of threads from /proc/$pid/stat as a fallback.

Should reading the number of threads from /prod/$pid/status fail, use the
number provided by /prod/$pid/stat as a fallback. If that fails, too, use 1.

As discussed with @manuelluis in #1033.
src/processes.c