From e42ac46f6059f6970b91f985cde50b0ec0633e1b Mon Sep 17 00:00:00 2001 From: gad Date: Mon, 21 Jun 2004 16:53:11 +0000 Subject: 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 --- bin/ps/print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/ps/print.c') diff --git a/bin/ps/print.c b/bin/ps/print.c index 01e7e1c..de5c69b 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -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 { -- cgit v1.1