Date: Sun, 06 Jul 1997 03:27:28 +1000 From: David Nugent <davidn@labs.usn.blaze.net.au> To: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.pp.ru> Cc: Wolfram Schneider <wosch@apfel.de>, current@FreeBSD.ORG Subject: Re: long usernames in top Message-ID: <199707051727.DAA03838@labs.usn.blaze.net.au> In-Reply-To: Your message of "Sat, 05 Jul 1997 16:16:38 %2B0400." <Pine.BSF.3.96.970705161359.545A-100000@nagual.pp.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
> > Use this to determine the maximum name. 8 is an obvious minimum, and > > do this at startup. If larger names are added while top is running, > > well, tough, they get truncated which is no big deal. > > Better variant will be to calculate maxnamelen at runtime through > displayed names only, not through all names from /etc/passwd Very true. Does top use pwcache? (I guess not since top is written for os's that don't have it, but you never know :)). > Otherwise you'll get wide output even if only one long user name present > in your /etc/passwd (even this userid is never really used). Yes. Regards, David -- David Nugent - Unique Computing Pty Ltd - Melbourne, Australia Voice +61-3-9791-9547 Data/BBS +61-3-9792-3507 3:632/348@fidonet davidn@freebsd.org davidn@blaze.net.au http://www.blaze.net.au/~davidn/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707051727.DAA03838>