Use the correct sysctl names for intrcnt and intrnames.

This commit is contained in:
Luigi Rizzo 2001-10-25 01:29:21 +00:00
parent 24db04598b
commit f36f7f8005
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85450

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 ;