projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history]
/
usr.bin
/
w
/
w.c
diff --git
a/usr.bin/w/w.c
b/usr.bin/w/w.c
index
ee86f2a
..
44625b0
100644
(file)
--- a/
usr.bin/w/w.c
+++ b/
usr.bin/w/w.c
@@
-322,6
+322,8
@@
main(argc, argv)
attime(&ep->utmp.ut_time));
if (ep->idle >= 36 * 60)
printf(" %ddays ", (ep->idle + 12 * 60) / (24 * 60));
attime(&ep->utmp.ut_time));
if (ep->idle >= 36 * 60)
printf(" %ddays ", (ep->idle + 12 * 60) / (24 * 60));
+ else if (ep->idle == 0)
+ printf(" - ");
else
prttime(ep->idle, " ");
printf("%.*s\n", argwidth, ep->args);
else
prttime(ep->idle, " ");
printf("%.*s\n", argwidth, ep->args);