Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 May 2005 18:38:31 +0200
From:      "Slawek" <sgp@telsatgp.com.pl>
To:        <freebsd-stable@freebsd.org>
Subject:   Re: Strange top(1) output
Message-ID:  <003401c55711$2d6bb0a0$0505a8c0@Slawek>
References:  <c21e92e20505100316667e6bd4@mail.gmail.com> <20050510105449.GA6223@orion.daedalusnetworks.priv> <20050510134409.GA691@lucy.pool-151-204-5-5.pskn.east.verizon.net> <20050510104018.M750@lexi.siliconlandmark.com> <20050510152646.GA1164@orion.daedalusnetworks.priv> <1115815807.8809.3.camel@buffy.york.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help

Hello!
In message to <freebsd-stable@freebsd.org> sent Wed, 11 May 2005 13:50:07 
+0100 you wrote:

 >> Ah, yes!  Good thought.  This could affect the width of the USERNAME
 >> column and push everything too far to the right.  If this is the case,
 >> I'd probably vote for optionally limiting the length of the username
 >> column to, say, 8 columns at most.

 GA> I would also vote for limiting it to 8 characters.  Even with longer
 GA> usernames, I suspect 8 characters will be enough to identify particular
 GA> users (and if it's not there is always they UID view).

 GA> Doing this would also allow us to eliminate the nasty code in
 GA> src/usr.bin/top/machine.c which causes top to be unusable on a machine
 GA> with a significant number of user accounts.  See
 GA> http://lists.freebsd.org/pipermail/freebsd-stable/2005-April/014275.htm
 GA> l for details.


Another idea, may I?

Make USERNAME column 8-char's wide first, and expand it later whenever 
longer username needs to be displayed

- no built-in length limit
- no need to scan all usernames at start


-- 
Slawomir Piotrowski 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003401c55711$2d6bb0a0$0505a8c0>