summaryrefslogtreecommitdiff
path: root/usr.bin/top
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1999-03-07 06:55:47 +0000
committerBruce Evans <bde@FreeBSD.org>1999-03-07 06:55:47 +0000
commit6bc6d9631d2d826c8d4efbce48b60d38d79c0efe (patch)
tree2facfc5b7cc68bfeee7a731a8447ae8ac6702594 /usr.bin/top
parent6b3cb5936d7e40e180249c46f3c23d26f9353c67 (diff)
downloadsrc-test2-6bc6d9631d2d826c8d4efbce48b60d38d79c0efe.tar.gz
src-test2-6bc6d9631d2d826c8d4efbce48b60d38d79c0efe.zip
Notes
Diffstat (limited to 'usr.bin/top')
-rw-r--r--usr.bin/top/machine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index d64d494e128c..f7ad95a0488b 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");