diff options
| author | Bosko Milekic <bmilekic@FreeBSD.org> | 2001-06-23 17:03:27 +0000 |
|---|---|---|
| committer | Bosko Milekic <bmilekic@FreeBSD.org> | 2001-06-23 17:03:27 +0000 |
| commit | 4edec6b79a97967cc5c0420888b6ebf75ec2fde0 (patch) | |
| tree | 6a7c5e5ed0f4f2d5b82b7a8df45e25ea3cba0721 /usr.bin | |
| parent | ab962c79ec046afc432ec9235363deb8db868f16 (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/systat/mbufs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/systat/mbufs.c b/usr.bin/systat/mbufs.c index f79305351fd60..df53e0cd9a84e 100644 --- a/usr.bin/systat/mbufs.c +++ b/usr.bin/systat/mbufs.c @@ -190,7 +190,8 @@ initmbufs() nmbtypes = mbtypeslen / sizeof(*m_mbtypes); #endif len = sizeof(int); - if (sysctlbyname("kern.smp.cpus", &ncpu, &len, NULL, 0) < 0) { + if (sysctlbyname("kern.smp.cpus", &ncpu, &len, NULL, 0) < 0 && + sysctlbyname("hw.ncpu", &ncpu, &len, NULL, 0) < 0) { error("sysctl getting number of cpus"); return 0; } |
