From e9e85b7ab4d0f303e61c6557fb76340ee95b8dee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20Luis=20Sanmart=C3=ADn=20Rozada?= Date: Sun, 31 May 2015 00:52:18 +0200 Subject: [PATCH] Processes: in ps_read_status fix check to skip lines if it doesn't start with "Vm" and it doesn't start "Threads". --- src/processes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.30.2