Date: Tue, 15 Jun 1999 15:55:17 -0400 (EDT) From: Sam Stephenson <sam@conio.net> To: David Scheidt <dscheidt@enteract.com> Cc: freebsd-stable@freebsd.org, freebsd-current@freebsd.org Subject: Re: 'w' patch Message-ID: <Pine.BSF.4.05.9906151554090.3633-100000@aeolus> In-Reply-To: <Pine.NEB.3.96.990615135905.89877E-100000@shell-1.enteract.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I'm using 3.2-STABLE. Could that be the problem? --Sam Stephenson sam@conio.net On Tue, 15 Jun 1999, David Scheidt wrote: > On Tue, 15 Jun 1999, Sam Stephenson wrote: > > > There seem to be two problems (not even problems; more like annoyances) that > > exist in the 'w' command, both which involve unnecessary spacing that limits > > the size of the WHAT field. I have attached a patch to > > /usr/src/usr.bin/w/w.c which corrects the following: > > I applied this to -CURRENT. The USER bit works correctly. IDLE and WHAT > are broken, it appears. > > rally3# ./w > 12:56PM up 5 days, 5:08, 16 users, load averages: 0.19, 0.04, 0.01 > USER TTY FROM LOGIN@ IDLE WHAT > dms v0 - Thu07AM 21 - > dms p0 :0.0 12:32PM 21 - > dms p1 :0.0 Thu07AM 21 - > dms p2 :0.0 Thu07AM 21 - > dms p3 :0.0 Thu09AM 21 - > dms p4 :0.0 Thu04PM 21 - > dms p5 - Mon02PM 21 - > dms p6 :0.0 Fri01PM 21 - > dms p7 :0.0 Mon10AM 21 - > dms p8 :0.0 Mon11AM 21 - > dms p9 :0.0 Mon11AM 21 - > dms pa :0.0 7:41AM 21 - > root pb :0.0 12:40PM 21 - > jabba pc :0.0 12:53PM 21 - > jabba1 pd :0.0 12:53PM 21 - > jabba12345 pe :0.0 12:56PM 21 - > > One minor nit: I think two spaces between USER and TTY looks better. > > David > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9906151554090.3633-100000>