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:
gad 2004-06-21 16:53:11 +00:00
parent 12a1c3d791
commit 57fc96777e

View File

@ -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 {