summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d0839a3)
raw | patch | inline | side by side (parent: d0839a3)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 08:46:29 +0000 (10:46 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 08:46:29 +0000 (10:46 +0200) |
[src/processes.c:1095]: (style) Checking if unsigned variable 'num_lwp' is less than zero.
src/processes.c | patch | blob | history |
diff --git a/src/processes.c b/src/processes.c
index 4f2283fc76000e8e69f539b084248d75bf98b22b..5a795b5aefd915a5e4c1faeb072c63ebc3e2dfa0 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
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;
}