diff options
author | bde <bde@FreeBSD.org> | 1999-03-07 06:55:47 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-03-07 06:55:47 +0000 |
commit | 01a9befa3a11e979e5f76a6eb914396b254a7c00 (patch) | |
tree | 4059c083c14e13815ea3923c1844350c07d8b8a3 /usr.bin/top/machine.c | |
parent | 8071fca0487b2cdbac4c0c6a9b1106deff813f05 (diff) | |
download | FreeBSD-src-01a9befa3a11e979e5f76a6eb914396b254a7c00.zip FreeBSD-src-01a9befa3a11e979e5f76a6eb914396b254a7c00.tar.gz |
Oops, the test for "no-cpu" was inverted.
Submitted by: Seigo TANIMURA <tanimura@naklab.dnj.ynu.ac.jp>
Diffstat (limited to 'usr.bin/top/machine.c')
-rw-r--r-- | usr.bin/top/machine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index d64d494..f7ad95a 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -19,7 +19,7 @@ * Steven Wallace <swallace@freebsd.org> * Wolfram Schneider <wosch@FreeBSD.org> * - * $Id: machine.c,v 1.21 1999/02/06 16:58:50 fenner Exp $ + * $Id: machine.c,v 1.22 1999/03/05 16:38:13 bde Exp $ */ @@ -584,7 +584,7 @@ char *(*get_userid)(); /* generate "STATE" field */ switch (state = PP(pp, p_stat)) { case SRUN: - if (smpmode && PP(pp, p_oncpu) == 0xff) + if (smpmode && PP(pp, p_oncpu) != 0xff) sprintf(status, "CPU%d", PP(pp, p_oncpu)); else strcpy(status, "RUN"); |