Have `ps' return the cputimes for zombies, with the assumption that
kvm_getprocs() will provide useful information if it can, or *it* will provide a zero value if it can not find something appropriate. Submitted by: bde
This commit is contained in:
parent
12a1c3d791
commit
57fc96777e
@ -509,7 +509,7 @@ cputime(KINFO *k, VARENT *ve)
|
||||
if (decimal_point == '\0')
|
||||
decimal_point = localeconv()->decimal_point[0];
|
||||
v = ve->var;
|
||||
if (k->ki_p->ki_stat == SZOMB || !k->ki_valid) {
|
||||
if (!k->ki_valid) {
|
||||
secs = 0;
|
||||
psecs = 0;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user