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

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