Use the correct sysctl names for intrcnt and intrnames.

This commit is contained in:
luigi 2001-10-25 01:29:21 +00:00
parent 9d4139f4f8
commit 3da912cc76

View File

@ -46,11 +46,11 @@ vm_i()
long uptime=1;
len=sizeof(cnt);
i = sysctlbyname("kern.intrcnt", &cnt, &len, NULL, 0);
i = sysctlbyname("hw.intrcnt", &cnt, &len, NULL, 0);
if (i != 0)
return i ;
len=sizeof(names);
i = sysctlbyname("kern.intrnames", &names, &len, NULL, 0);
i = sysctlbyname("hw.intrnames", &names, &len, NULL, 0);
if (i != 0)
return i ;