diff options
author | jhb <jhb@FreeBSD.org> | 2001-04-27 19:33:50 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-04-27 19:33:50 +0000 |
commit | cea5d733b295a83cdcdfbae2b987020ca0ebbd8d (patch) | |
tree | be49549631a0c4f11e826dcd07cf91ef7bde7e3d /usr.bin/top/machine.c | |
parent | 8bfdafc9349392c2fe02f548d6ffe6db56626575 (diff) | |
download | FreeBSD-src-cea5d733b295a83cdcdfbae2b987020ca0ebbd8d.zip FreeBSD-src-cea5d733b295a83cdcdfbae2b987020ca0ebbd8d.tar.gz |
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.
Diffstat (limited to 'usr.bin/top/machine.c')
-rw-r--r-- | usr.bin/top/machine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 5002498..96bc79d 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; |