Bug 22270

Summary: [patch] /usr/bin/top wraps wrong w/SMP on and long usernames
Product: Base System Reporter: williamc <williamc>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1.1-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description williamc 2000-10-24 10:10:03 UTC
	/usr/bin/top was reduced to 15 characters max in 1.29 by davidn
	however this is not enough for SMP systems who have one more 
	column of text that indicates CPU number.  With SMP enabled these
	systems need a username of max 13 characters to avoid the 
	unattractive wrapping.

Fix: The following patch applied to /usr/src/usr.bin/top/machine.c will
	correct this problem.  This patch is for 4.X-STABLE (1.29).  But the 
	affected code is still identical in 5-CURRENT (1.30).  Both versions
	need the patch, as well as 3.X-STABLE (1.18.2.4).  Cheers!
How-To-Repeat: 
	Run /usr/bin/top on a SMP system with SMP on and a username of 14
	or more characters.
Comment 1 Will Andrews freebsd_committer freebsd_triage 2001-03-12 05:54:30 UTC
State Changed
From-To: open->suspended

Committed to 5.0-CURRENT, thanks!  This serves as a reminder to 
commit this patch to RELENG_4 after 4.3-RELEASE.
Comment 2 Will Andrews freebsd_committer freebsd_triage 2001-05-09 00:58:30 UTC
State Changed
From-To: suspended->closed

MFC'd to RELENG_4 about 10 minutes ago.  Thanks.