Bug 150575 - [PATCH]: sysutils/pcpustat to version 1.3
Summary: [PATCH]: sysutils/pcpustat to version 1.3
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-14 21:20 UTC by SterlingCamden
Modified: 2010-09-15 13:20 UTC (History)
0 users

See Also:


Attachments
file.diff (1.77 KB, patch)
2010-09-14 21:20 UTC, SterlingCamden
no flags Details | Diff
file.diff (280 bytes, patch)
2010-09-14 21:20 UTC, SterlingCamden
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SterlingCamden 2010-09-14 21:20:05 UTC
	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.
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2010-09-15 13:13:26 UTC
State Changed
From-To: open->closed

Committed, thanks.
Comment 2 dfilter service freebsd_committer freebsd_triage 2010-09-15 13:15:15 UTC
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"