From owner-freebsd-current Tue Jun 15 12:52:48 1999 Delivered-To: freebsd-current@freebsd.org Received: from aeolus.conio.net (ci221559-a.grnvle1.sc.home.com [24.4.122.122]) by hub.freebsd.org (Postfix) with SMTP id A592E14F4B for ; Tue, 15 Jun 1999 12:52:44 -0700 (PDT) (envelope-from sam@conio.net) Received: (qmail 3638 invoked by uid 1001); 15 Jun 1999 19:55:17 -0000 Received: from unknown (HELO localhost) (unknown) by unknown with SMTP; 15 Jun 1999 19:55:17 -0000 Date: Tue, 15 Jun 1999 15:55:17 -0400 (EDT) From: Sam Stephenson X-Sender: sam@aeolus To: David Scheidt Cc: freebsd-stable@freebsd.org, freebsd-current@freebsd.org Subject: Re: 'w' patch In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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-current" in the body of the message