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:
Garance A Drosehn 2004-06-21 16:53:11 +00:00
parent b21c2d7b12
commit 16ac318df7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130856

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 {