diff options
-rw-r--r-- | bin/ps/print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c index a48c4ec..7700491 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -500,7 +500,7 @@ cputime(KINFO *k, VARENT *ve) if (decimal_point == '\0') decimal_point = localeconv()->decimal_point[0]; v = ve->var; - if (!k->ki_valid) { + if (k->ki_p->ki_stat == SZOMB || !k->ki_valid) { secs = 0; psecs = 0; } else { |