From owner-freebsd-hackers Mon Mar 5 14:39:28 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from jack.go2net.com (jack.go2net.com [64.50.65.20]) by hub.freebsd.org (Postfix) with SMTP id EAEA237B718 for ; Mon, 5 Mar 2001 14:39:22 -0800 (PST) (envelope-from william.carrel@infospace.com) Received: (qmail 94979 invoked from network); 5 Mar 2001 22:44:23 -0000 Received: from ketel.go2net.com (10.200.10.75) by jack.go2net.com with SMTP; 5 Mar 2001 22:44:23 -0000 Received: (qmail 6838 invoked from network); 5 Mar 2001 22:12:27 -0000 Received: from gasket.go2net.com ([10.225.32.118]) (envelope-sender ) by ketel.go2net.com (qmail-ldap-1.03) with SMTP for ; 5 Mar 2001 22:12:27 -0000 Received: by gasket.go2net.com (Postfix, from userid 492) id B46795D40; Mon, 5 Mar 2001 14:12:24 -0800 (PST) To: freebsd-hackers@freebsd.org Subject: Fix for scrambled top display on SMP [PR 22270] From: William Carrel Date: 05 Mar 2001 14:12:24 -0800 Message-ID: Lines: 17 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.2 (Thalia) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It's just three lines of code. :) I have SMP machines here that have some pretty absurdly long usernames thanks to some NIS accounts (20+ chars). Unfortunately the namelength truncation code in /usr/bin/top currently doesn't take into account the 'C' (last CPU) field that SMP machines have. This patch makes long names just a little shorter so that the display doesn't wrap weirdly on a 80 column display. http://www.freebsd.org/cgi/query-pr.cgi?pr=22270 PR's been stale for a bit so I thought I'd draw some attention. Thanks for reading. -- Andy Carrel - william.carrel@infospace.com - +1 (206) 357-4607 Internet Sys. Eng. - Enterprise Infrastructure & Security - InfoSpace To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message