Den 06-01-2014 08:35, Jianhai Luan skrev:
Hi all,
I am working the issue such as "*SNMP HRPROCESSORLOAD RETURNS
INCORRECT VALUES FOR PROCESSOR #'S > 100 *". I google to find useful
information, and find the below URL:
http://mailing.unix.net-snmp-users.narkive.com/o21D50GY/hrprocessorload-returns-incorrect-values-for-processor-s-100
My question is why do the patch not be merged into latest version?
and if do the patch have other effect?
I am not following net-snmp-users, so I cannot tell what happened to it,
but if you could verify the attached patch I will make sure it gets into
5.7.3
/Niels
--
Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers --- R W Hamming
diff --git a/agent/mibgroup/hardware/cpu/cpu_linux.c b/agent/mibgroup/hardware/cpu/cpu_linux.c
index 8a081cd..b1dc308 100644
--- a/agent/mibgroup/hardware/cpu/cpu_linux.c
+++ b/agent/mibgroup/hardware/cpu/cpu_linux.c
@@ -154,7 +154,9 @@ int netsnmp_cpu_arch_load( netsnmp_cache *cache, void *magic ) {
snmp_log_perror("Missing CPU info entry");
break;
}
- b1 = b2+5; /* Skip "cpuN " */
+ b1 = b2; /* Skip "cpuN " */
+ while(*b1 != ' ') b1++;
+ b1++;
}
num_cpuline_elem = sscanf(b1, "%llu %llu %llu %llu %llu %llu %llu %llu %llu %llu",
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders