Commit Graph

14 Commits

Author SHA1 Message Date
David Nugent
658248453e Fix cosmetic bug in time display. Current day logins are now displayed
as plain time as originally intended, instead of displaying DayHH times
when the login time happens to be prior the GMT - TZ difference.
(Only noticable on systems operating east of GMT/UTC).
Local times are now used to determine the day.
1999-11-10 04:28:16 +00:00
Peter Wemm
c3aac50f28 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
Peter Wemm
69b41093b5 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.
1999-01-10 15:28:37 +00:00
Alexander Langer
8109e672e4 -Wall cleanup. 1997-12-28 17:50:10 +00:00
Philippe Charnier
57bd99e61c Revert some casts I introduced.
Requested by: Bruce.
1997-08-26 06:59:34 +00:00
Philippe Charnier
90389da95b Typo in usage(). Err -> errx when testing allocations. 1997-08-25 06:42:19 +00:00
Kazutaka YOKOTA
6d7977a7cc Made sure the string formated by strftime() is properly
null-terminated.

Should go to RELENG_2_1 and RELENG_2_2.

Reviewed by guido@freebsd.org.
1997-03-07 10:54:19 +00:00
Daniel O'Callaghan
70498d5a53 Reduce the command field width by one when idle time is > 9 days, to
eliminate unsightly blank line.

Possibly a 2.2 candidate.
1997-02-11 10:49:25 +00:00
Andrey A. Chernov
fbad6604dd Fix one column wrong offset in previous change days->day 1995-10-08 23:16:45 +00:00
Dima Ruban
89cc2fabf2 Print "1day" instead of "1days" 1995-09-22 00:50:37 +00:00
Garrett Wollman
656dcd4316 Delete bogus referneces to timezone code internal header file `tzfile.h',
which is no longer bogusly installed in /usr/include.
1995-08-07 19:17:46 +00:00
Rodney W. Grimes
7799f52a32 Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
Andrey A. Chernov
255318a894 idle time == 0 printed now as "-" like in good old BSD
skip cua* 3 chars as tty* 3 lchars
1994-09-27 01:00:18 +00:00
Rodney W. Grimes
9b50d90275 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00