From owner-freebsd-stable Tue Jun 15 12:17:27 1999 Delivered-To: freebsd-stable@freebsd.org Received: from pop3-3.enteract.com (pop3-3.enteract.com [207.229.143.32]) by hub.freebsd.org (Postfix) with SMTP id E309314DF5 for ; Tue, 15 Jun 1999 12:17:22 -0700 (PDT) (envelope-from dscheidt@enteract.com) Received: (qmail 17712 invoked from network); 15 Jun 1999 19:17:21 -0000 Received: from shell-1.enteract.com (dscheidt@207.229.143.40) by pop3-3.enteract.com with SMTP; 15 Jun 1999 19:17:21 -0000 Received: from localhost (dscheidt@localhost) by shell-1.enteract.com (8.9.3/8.9.2) with SMTP id OAA90191; Tue, 15 Jun 1999 14:17:20 -0500 (CDT) (envelope-from dscheidt@enteract.com) X-Authentication-Warning: shell-1.enteract.com: dscheidt owned process doing -bs Date: Tue, 15 Jun 1999 14:17:20 -0500 (CDT) From: David Scheidt To: Sam Stephenson 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-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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