]> git.ipfire.org Git - thirdparty/collectd.git/commit
plugin: processes: return error if procs_running can not be retrieved
authorBart De Vos <bart-de-vos@telenet.be>
Fri, 30 Aug 2019 07:12:34 +0000 (09:12 +0200)
committerBart De Vos <bart-de-vos@telenet.be>
Fri, 30 Aug 2019 07:15:43 +0000 (09:15 +0200)
commit565be346ba6e7dfe5f768a200eb4703e16d44689
tree473075ffe1d41e7adf0af76cb801cf78c76188b5
parentf93354d30a6b0c574f3a09094e1a4982bfd96adf
plugin: processes: return error if procs_running can not be retrieved

Although returning '1' is probably right, it's up to the application to
decide. The data structure for number of running processes is an 'int',
so '-1' clearly indicates something's wrong when interpreting the data.

Conflicts:
src/processes.c
src/processes.c