Blame SOURCES/net-snmp-5.7.2-hrProcessorLoad-many-cpus.patch

d9926c
1070076 - SNMP HRPROCESSORLOAD RETURNS INCORRECT VALUES FOR PROCESSOR #'S > 100
d9926c
d9926c
commit eef2f64b46357b353c79504bc593535ebe7421e7
d9926c
Author: Niels Baggesen <nba@users.sourceforge.net>
d9926c
Date:   Thu Jan 23 16:27:07 2014 +0100
d9926c
d9926c
    cpu_linux: support systems with more than 100 cpus.
d9926c
d9926c
diff -up net-snmp-5.7.2/agent/mibgroup/hardware/cpu/cpu_linux.c.hrProcessorLoad-many-cpus net-snmp-5.7.2/agent/mibgroup/hardware/cpu/cpu_linux.c
d9926c
--- net-snmp-5.7.2/agent/mibgroup/hardware/cpu/cpu_linux.c.hrProcessorLoad-many-cpus	2015-01-16 10:01:49.728398670 +0100
d9926c
+++ net-snmp-5.7.2/agent/mibgroup/hardware/cpu/cpu_linux.c	2015-01-16 10:02:58.796486160 +0100
d9926c
@@ -154,7 +154,9 @@ int netsnmp_cpu_arch_load( netsnmp_cache
d9926c
                 snmp_log_perror("Missing CPU info entry");
d9926c
                 break;
d9926c
             }
d9926c
-            b1 = b2+5; /* Skip "cpuN " */
d9926c
+            b1 = b2; /* Skip "cpuN " */
d9926c
+            while(*b1 != ' ') b1++;
d9926c
+            b1++;
d9926c
         }
d9926c
 
d9926c
         num_cpuline_elem = sscanf(b1, "%llu %llu %llu %llu %llu %llu %llu %llu %llu %llu",