Skip site navigation (1)Skip section navigation (2)
Date:      06 Jul 1997 00:12:18 +0200
From:      Wolfram Schneider <wosch@apfel.de>
To:        Terry Lambert <terry@lambert.org>
Cc:        ache@nagual.pp.ru (=?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?=), davidn@labs.usn.blaze.net.au, current@FreeBSD.ORG
Subject:   Re: long usernames in top
Message-ID:  <p1i7mf5no70.fsf@panke.panke.de>
In-Reply-To: Terry Lambert's message of Sat, 5 Jul 1997 11:39:19 -0700 (MST)
References:  <199707051839.LAA14837@phaeton.artisoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert <terry@lambert.org> 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    <wosch@apfel.de>    http://www.apfel.de/~wosch/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p1i7mf5no70.fsf>