From owner-freebsd-bugs Wed Aug 23 4:20: 8 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 805C837B43E for ; Wed, 23 Aug 2000 04:20:05 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id EAA84999; Wed, 23 Aug 2000 04:20:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Wed, 23 Aug 2000 04:20:05 -0700 (PDT) Message-Id: <200008231120.EAA84999@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: bin/20799: top's problem Reply-To: Peter Pentchev Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/20799; it has been noted by GNATS. From: Peter Pentchev To: wkwu@Kavalan.csie.NCTU.edu.tw Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/20799: top's problem Date: Wed, 23 Aug 2000 14:09:59 +0300 If you want to hardcode a username length limit, you'd be better off with the max value - 15, in this case; or use a value provided by the OS - UT_NAMESIZE comes to mind. On Wed, Aug 23, 2000 at 06:26:25PM +0800, wkwu@Kavalan.csie.NCTU.edu.tw wrote: > >Synopsis: top's problem > > >Description: [snip] > > we have to comment above, and added only line: > namelength = 9; > > Because the 'top' command will delay about 7-seconds if we use > the original source. I am wondered why the 'top' dump all yp-passwd > to get 'namelength'. It seems a little stupid. G'luck, Peter -- This inert sentence is my body, but my soul is alive, dancing in the sparks of your brain. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message