Fixes another bug in determining the correct buffer size for sysctl. Doing it the right way this time (for sure). Fix: The sysctlbyname(3) function provides a uniform way to obtain the proper size, so I have implemented that instead of trying to divine the correct size based on the number of CPUs. The tarball at http://chipstips.com/download/pcpustat-1.3.tar.bz2 has already been updated. patches follow: How-To-Repeat: On some systems, pcpustat fails with: pcpustat: sysctl(kern.cp_times...) expected 1280, got 160 Before outputting any data. This is due to incorrectly sizing the buffer for obtaining the sysctl value kern.cp_times.
State Changed From-To: open->closed Committed, thanks.
pav 2010-09-15 12:15:08 UTC FreeBSD ports repository Modified files: sysutils/pcpustat Makefile distinfo Log: - Update to 1.3 PR: ports/150575 Submitted by: User Sterling Camden <sterling@camdensoftware.com> (maintainer) Revision Changes Path 1.2 +1 -1 ports/sysutils/pcpustat/Makefile 1.2 +3 -3 ports/sysutils/pcpustat/distinfo _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"