equal
deleted
inserted
replaced
|
1 --- net-snmp-5.4.1/agent/mibgroup/hardware/cpu/cpu_kstat.c Thu Oct 5 08:53:42 2006 |
|
2 +++ net-snmp-5.4.1.mod/agent/mibgroup/hardware/cpu/cpu_kstat.c Thu Mar 29 07:57:19 2012 |
|
3 @@ -103,6 +103,8 @@ |
|
4 if (strcmp(ksp->ks_module, "cpu_stat") == 0) { |
|
5 i = ksp->ks_instance; |
|
6 cpu2 = netsnmp_cpu_get_byIdx( i, 0 ); |
|
7 + if ( !cpu2 ) |
|
8 + break; /* or continue ?*/ /*Skip new CPUs */ |
|
9 if ((ksp->ks_type != KSTAT_TYPE_RAW) || |
|
10 (ksp->ks_data_size != sizeof(cs))|| |
|
11 (kstat_read(kstat_fd, ksp, &cs) == -1)) { |