From owner-freebsd-current Sat Jul 5 15:31:36 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA22958 for current-outgoing; Sat, 5 Jul 1997 15:31:36 -0700 (PDT) Received: from bsd.fs.bauing.th-darmstadt.de (bsd.fs.bauing.th-darmstadt.de [130.83.63.241]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA22950 for ; Sat, 5 Jul 1997 15:31:29 -0700 (PDT) Received: from panke.panke.de (anonymous220.ppp.cs.tu-berlin.de [130.149.17.220]) by bsd.fs.bauing.th-darmstadt.de (8.8.5/8.8.5) with ESMTP id AAA09749; Sun, 6 Jul 1997 00:31:16 +0200 (MET DST) Received: (from wosch@localhost) by panke.panke.de (8.8.5/8.6.12) id AAA01080; Sun, 6 Jul 1997 00:12:22 +0200 (MET DST) To: Terry Lambert Cc: ache@nagual.pp.ru (=?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?=), davidn@labs.usn.blaze.net.au, current@FreeBSD.ORG Subject: Re: long usernames in top References: <199707051839.LAA14837@phaeton.artisoft.com> From: Wolfram Schneider Date: 06 Jul 1997 00:12:18 +0200 In-Reply-To: Terry Lambert's message of Sat, 5 Jul 1997 11:39:19 -0700 (MST) Message-ID: Lines: 18 Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Terry Lambert writes: > > Better variant will be to calculate maxnamelen at runtime through > > displayed names only, not through all names from /etc/passwd > > Yes. This is what I did for "ps" and "w". The annoying thing > about top is that the name data is potentially variant on each > refresh. Plus the thing is being actively maintained by an agency > other than FreeBSD, so unless the job was done completely, it's > likely that it would become a FreeBSD-only maintenance nightmare. Absolutely correct. My 7 line patch did not fix the problem, but makes the life for 99% of the users easier. How many systems have usernames longer than 10 characters? -- Wolfram Schneider http://www.apfel.de/~wosch/