From: Manuel Luis SanmartĂ­n Rozada Date: Sat, 30 May 2015 22:52:18 +0000 (+0200) Subject: Processes: in ps_read_status fix check to skip lines X-Git-Tag: collectd-5.6.0~704^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e9e85b7ab4d0f303e61c6557fb76340ee95b8dee;p=collectd.git Processes: in ps_read_status fix check to skip lines if it doesn't start with "Vm" and it doesn't start "Threads". --- diff --git a/src/processes.c b/src/processes.c index d65ffb66..1c5b9630 100644 --- a/src/processes.c +++ b/src/processes.c @@ -828,7 +828,7 @@ static procstat_t *ps_read_status (int pid, procstat_t *ps) char *endptr; if (strncmp (buffer, "Vm", 2) != 0 - || strncmp (buffer, "Threads", 7) != 0) + && strncmp (buffer, "Threads", 7) != 0) continue; numfields = strsplit (buffer, fields,