aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2020-06-28 00:29:21 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2020-06-28 00:29:21 +0000
commit5211c24ddf31118fd07150915d034cea03c377d1 (patch)
treeb6e722895b19cce532e9bc281c9aef42649c0595 /usr.bin
parent1eb224644466f87246961fd7156df38753a611ac (diff)
downloadsrc-5211c24ddf31118fd07150915d034cea03c377d1.tar.gz
src-5211c24ddf31118fd07150915d034cea03c377d1.zip
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/top/machine.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index b7186a6c2c2e..476432e5db0c 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -282,10 +282,7 @@ machine_init(struct statics *statics)
size_t size;
size = sizeof(smpmode);
- if ((sysctlbyname("machdep.smp_active", &smpmode, &size,
- NULL, 0) != 0 &&
- sysctlbyname("kern.smp.active", &smpmode, &size,
- NULL, 0) != 0) ||
+ if (sysctlbyname("kern.smp.active", &smpmode, &size, NULL, 0) != 0 ||
size != sizeof(smpmode))
smpmode = 0;