summaryrefslogtreecommitdiffstats
path: root/bin/ps/print.c
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2004-06-21 16:53:11 +0000
committergad <gad@FreeBSD.org>2004-06-21 16:53:11 +0000
commite42ac46f6059f6970b91f985cde50b0ec0633e1b (patch)
tree6d44b7a683bdd116e1ac4edcb23b10dfc848b2c9 /bin/ps/print.c
parent5bdd18548d698b99dc8883101e157f79c45e5fac (diff)
downloadFreeBSD-src-e42ac46f6059f6970b91f985cde50b0ec0633e1b.zip
FreeBSD-src-e42ac46f6059f6970b91f985cde50b0ec0633e1b.tar.gz
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
Diffstat (limited to 'bin/ps/print.c')
-rw-r--r--bin/ps/print.c2
1 files changed, 1 insertions, 1 deletions
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 {
OpenPOWER on IntegriCloud