From nobody@FreeBSD.org  Mon Feb 12 22:48:01 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id AD6B237B491
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 12 Feb 2001 22:48:00 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f1D6m0832358;
	Mon, 12 Feb 2001 22:48:00 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200102130648.f1D6m0832358@freefall.freebsd.org>
Date: Mon, 12 Feb 2001 22:48:00 -0800 (PST)
From: mikea@kconline.com
To: freebsd-gnats-submit@FreeBSD.org
Subject: Header in 'top' too long for SMP system and wraps distorting ouput
X-Send-Pr-Version: www-1.0

>Number:         25055
>Category:       misc
>Synopsis:       Header in 'top' too long for SMP system and wraps distorting ouput
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 12 22:50:01 PST 2001
>Closed-Date:    Fri Jun 29 16:18:45 PDT 2001
>Last-Modified:  Fri Jun 29 16:19:09 PDT 2001
>Originator:     Mike Atkinson
>Release:        4.2-Stable
>Organization:
KC Online
>Environment:
FreeBSD ns.kconline.com 4.2-STABLE FreeBSD 4.2-STABLE #3: Mon Feb 12 21:40:27 EST 2001     mikea@nfs-bk0.kconline.com:/usr/obj/usr/src/sys/WWW  i386
>Description:
When top is run on an SMP processor machine, the column header is too long and wraps into the output area of the display.
>How-To-Repeat:
Run top on an SMP machine. :^)
>Fix:
Change header to use 'CMD' instead of 'COMMAND' so that header fits on screen.  Relevant code is in /usr/src/usr.bin/top/machine.c

diff machine.c machine.c.new
114c114
<   "  PID %-*.*s PRI NICE  SIZE    RES STATE  C   TIME   WCPU    CPU COMMAND";
---
>   "  PID %-*.*s PRI NICE  SIZE    RES STATE  C   TIME   WCPU    CPU CMD";

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mikeh 
State-Changed-When: Fri Jun 29 16:18:45 PDT 2001 
State-Changed-Why:  
Fix in src/usr.bin/top/machine.c,v 1.39. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=25055 
>Unformatted:
