From owner-cvs-all Sun Jan 10 07:28:44 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA02266 for cvs-all-outgoing; Sun, 10 Jan 1999 07:28:44 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA02261; Sun, 10 Jan 1999 07:28:43 -0800 (PST) (envelope-from peter@FreeBSD.org) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id HAA18829; Sun, 10 Jan 1999 07:28:38 -0800 (PST) Date: Sun, 10 Jan 1999 07:28:38 -0800 (PST) Message-Id: <199901101528.HAA18829@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/usr.bin/w pr_time.c w.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk peter 1999/01/10 07:28:38 PST Modified files: usr.bin/w pr_time.c w.c Log: Fix the annoying bug introduced in rev 1.18 that caused each line to be one character shorter than the previous in a stairstep fashion when long idle times were involved. A couple of nits: - spelling/typo fix. - some of the easier style(9) fixes where it was bothering me. - Handle 100+ days idle time (ha!). Probably the right thing to do is to do a snprintf into a buffer and strlen the result rather than doing hackery on magic numbers. XXX the wide (and mostly unused) username and tty columns annoy me since it it could be used for more useful information for the command. We should actually count the largest username and tty and adjust like 'ls -l' does. Revision Changes Path 1.12 +6 -3 src/usr.bin/w/pr_time.c 1.32 +9 -10 src/usr.bin/w/w.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message