From f3cc76f4f2f43252cd93956d279383dfbb82b118 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 23 Apr 2016 10:46:29 +0200 Subject: [PATCH] processes plugin: ps->num_lwp is unsigned long [src/processes.c:1095]: (style) Checking if unsigned variable 'num_lwp' is less than zero. --- src/processes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/processes.c b/src/processes.c index 4f2283fc..5a795b5a 100644 --- a/src/processes.c +++ b/src/processes.c @@ -1092,7 +1092,7 @@ static int ps_read_process (long pid, procstat_t *ps, char *state) ps->vmem_code = -1; DEBUG("ps_read_process: did not get vmem data for pid %li", pid); } - if (ps->num_lwp <= 0) + if (ps->num_lwp == 0) ps->num_lwp = 1; ps->num_proc = 1; } -- 2.30.2