Date: Sat, 5 Jul 1997 15:10:35 +0400 (MSD) From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.pp.ru> To: Wolfram Schneider <wosch@apfel.de> Cc: current@FreeBSD.ORG Subject: Re: long usernames in top Message-ID: <Pine.BSF.3.96.970705150547.27913A-100000@lsd.relcom.eu.net> In-Reply-To: <199707051001.MAA00736@panke.panke.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 5 Jul 1997, Wolfram Schneider wrote: > Here is a workaround. Top should print only the first 10 > characters. If the username is longer than 10 characters, the > 10th character will be replaces with an asterisk ('*'). An other > alternative would be to use the uid instead the long username. It is not workaround but hack. You silently assume that all characters above 10 is not sufficient which is not true in general case. Why not replace by '*' _first_ 10 characters instead :-) Top must do the same thing as ps does, i.e. calculate max length of user name and align outbut with this value. -- Andrey A. Chernov <ache@null.net> http://www.nagual.pp.ru/~ache/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970705150547.27913A-100000>