This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history] / usr.bin / w / w.c
index ee86f2a..44625b0 100644 (file)
@@ -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);