From 6bc6d9631d2d826c8d4efbce48b60d38d79c0efe Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sun, 7 Mar 1999 06:55:47 +0000 Subject: [PATCH] Oops, the test for "no-cpu" was inverted. Submitted by: Seigo TANIMURA --- usr.bin/top/machine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index d64d494e128..f7ad95a0488 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -19,7 +19,7 @@ * Steven Wallace * Wolfram Schneider * - * $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");