From owner-freebsd-bugs Mon Feb 12 22:50: 5 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A6D0A37B4EC for ; Mon, 12 Feb 2001 22:50:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1D6o1o32479; Mon, 12 Feb 2001 22:50:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id AD6B237B491 for ; 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 X-Send-Pr-Version: www-1.0 Subject: misc/25055: Header in 'top' too long for SMP system and wraps distorting ouput Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 12 22:50:01 PST 2001 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message