bin/111329: Percentages reported by sa(8) are off by a factor of 100

Diomidis Spinellis dds at istlab.dmst.aueb.gr
Fri Apr 6 18:00:13 UTC 2007


>Number:         111329
>Category:       bin
>Synopsis:       Percentages reported by sa(8) are off by a factor of 100
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 06 18:00:11 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Diomidis Spinellis
>Release:        FreeBSD 6.2-RELEASE-p3 i386
>Organization:
FreeBSD
>Environment:
System: FreeBSD istlab.dmst.aueb.gr 6.2-RELEASE-p3 FreeBSD 6.2-RELEASE-p3 #0: Tue Apr 3 23:51:02 EEST 2007 dds at istlab.dmst.aueb.gr:/usr/obj/usr/src/sys/ISTLAB i386


>Description:
	The percenteges reported by sa(8) are in fact the ratios n/sum, and
	therefore off by a factor of 100.
>How-To-Repeat:
	On a system with accounting enabled run sa -cn.  Sum the contents of the second
	column.  They sum up to 1, instead of 100.
>Fix:
	Correct the printfs in pdb.c


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list