use PI_EMPTY constant
This commit is contained in:
parent
1c8c66dd0c
commit
4ad0aea473
|
@ -168,7 +168,7 @@ int sigar_proc_list_get(sigar_t *sigar,
|
|||
|
||||
for (i=0; i<elts; i++) {
|
||||
struct tbl_procinfo *info = &procinfo[i];
|
||||
if (!info->pi_status) {
|
||||
if (info->pi_status == PI_EMPTY) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue