From: Ruben Kerkhof Date: Sat, 23 Apr 2016 08:46:29 +0000 (+0200) Subject: processes plugin: ps->num_lwp is unsigned long X-Git-Tag: collectd-5.6.0~329^2~34 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f3cc76f4f2f43252cd93956d279383dfbb82b118;p=collectd.git processes plugin: ps->num_lwp is unsigned long [src/processes.c:1095]: (style) Checking if unsigned variable 'num_lwp' is less than zero. --- 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; }