diff options
author | Nathan Scott <natoscott@users.noreply.github.com> | 2021-08-17 15:42:33 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-17 15:42:33 +1000 |
commit | 3f727d4720c8df38789dea246a5217a5412ebbcf (patch) | |
tree | 0b7093afd5d7846f86b1e317c0022130ca66e42e /pcp/PCPProcessList.c | |
parent | fefff80631e86f0296a2621a3699b16de60b86c6 (diff) | |
parent | d5ff5c48a889c1eab6e3792d3f5ca1566cf05491 (diff) |
Merge pull request #747 from natoscott/coverity
Coverity scan updates (minor)
Diffstat (limited to 'pcp/PCPProcessList.c')
-rw-r--r-- | pcp/PCPProcessList.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pcp/PCPProcessList.c b/pcp/PCPProcessList.c index e4f9a5fd..3001d5e8 100644 --- a/pcp/PCPProcessList.c +++ b/pcp/PCPProcessList.c @@ -35,7 +35,7 @@ static void PCPProcessList_updateCPUcount(PCPProcessList* this) { unsigned int cpus = Platform_getMaxCPU(); if (cpus == pl->existingCPUs) return; - if (cpus <= 0) + if (cpus == 0) cpus = pl->activeCPUs; if (cpus <= 1) cpus = pl->activeCPUs = 1; |