From cea5d733b295a83cdcdfbae2b987020ca0ebbd8d Mon Sep 17 00:00:00 2001 From: jhb Date: Fri, 27 Apr 2001 19:33:50 +0000 Subject: [PATCH] Check the new kern.smp.active sysctl rather than the non-existent smp.smp_active sysctl to determine if we are running on an SMP machine. --- usr.bin/top/machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 50024982574d..96bc79d8d0cd 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -209,7 +209,7 @@ struct statics *statics; modelen = sizeof(smpmode); if ((sysctlbyname("machdep.smp_active", &smpmode, &modelen, NULL, 0) < 0 && - sysctlbyname("smp.smp_active", &smpmode, &modelen, NULL, 0) < 0) || + sysctlbyname("kern.smp.active", &smpmode, &modelen, NULL, 0) < 0) || modelen != sizeof(smpmode)) smpmode = 0;