.gitignore | 1 agent/mibgroup/hardware/cpu/cpu_linux.c | 43 ++++++++++++-------- agent/mibgroup/if-mib/data_access/interface_linux.c | 1 debian/.gitignore | 1 4 files changed, 30 insertions(+), 16 deletions(-)
New commits: commit 681f833a51d77122e25502e181a5c93e448c1795 Author: Stephen Hemminger <stephen.hemmin...@vyatta.com> Date: Mon Mar 16 14:01:28 2009 -0700 ignore another build file commit 4754b0629f7aaad51b76e1f4ac191392a583d4b2 Author: Stephen Hemminger <stephen.hemmin...@vyatta.com> Date: Mon Mar 16 14:00:30 2009 -0700 Ignore derived file commit e897d70d0c579a7b3efc740eec2c640b74c66496 Author: Stephen Hemminger <stephen.hemmin...@vyatta.com> Date: Mon Mar 16 13:05:06 2009 -0700 Fix valgrind warning Valgrind can't figure out that speed will be set by SIOCETHTOOL, so just initialize it. commit 09823f0d552e0308710711a9d5e9ed6690f8d1d4 Author: Stephen Hemminger <stephen.hemmin...@vyatta.com> Date: Mon Mar 16 12:50:39 2009 -0700 Avoid reading past end of buffer The code parsing strings could read pat end of buffer. Avoid this problem by using only part of the allocated size and null terminating. Add check for read error. commit 20653c9796939494318a77537a3f6094add56cf6 Author: Stephen Hemminger <stephen.hemmin...@vyatta.com> Date: Mon Mar 16 12:45:58 2009 -0700 Allocate bigger initial buffer Rather than starting with a small 256 byte buffer when reading proc stat files, just use a full page, and grow by 1K. The small amount of additional memory saves wasted time rereading during boot. commit 65e24259f7dedb49352d720bae71315eaf8aa7bc Author: Stephen Hemminger <stephen.hemmin...@vyatta.com> Date: Mon Mar 16 12:43:53 2009 -0700 Use lseek rather than reopening If buffer size needed to be increased, then code would close/reopen but never check for failure. Just use lseek, simpler, faster, no error possible. http://suva.vyatta.com/git/?p=net-snmp.git;a=commitdiff;h=681f833a51d77122e25502e181a5c93e448c1795 http://suva.vyatta.com/git/?p=net-snmp.git;a=commitdiff;h=4754b0629f7aaad51b76e1f4ac191392a583d4b2 http://suva.vyatta.com/git/?p=net-snmp.git;a=commitdiff;h=e897d70d0c579a7b3efc740eec2c640b74c66496 http://suva.vyatta.com/git/?p=net-snmp.git;a=commitdiff;h=09823f0d552e0308710711a9d5e9ed6690f8d1d4 http://suva.vyatta.com/git/?p=net-snmp.git;a=commitdiff;h=20653c9796939494318a77537a3f6094add56cf6 http://suva.vyatta.com/git/?p=net-snmp.git;a=commitdiff;h=65e24259f7dedb49352d720bae71315eaf8aa7bc _______________________________________________ svn mailing list svn@mailman.vyatta.com http://mailman.vyatta.com/mailman/listinfo/svn