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

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