*** w.c.old Fri Feb 13 00:37:18 1998 --- w.c Fri Feb 13 00:40:46 1998 *************** *** 122,128 **** */ if (len > 16) len = 16; last = host + len; ! for ( ; host <= last ; host++) if (isprint(*host) && *host != ' ') { fputc(*host, stdout); ++width; --- 122,128 ---- */ if (len > 16) len = 16; last = host + len; ! for ( ; host < last ; host++) if (isprint(*host) && *host != ' ') { fputc(*host, stdout); ++width; *************** *** 201,213 **** print_time_ival7(idletime(u, tty), 0, stdout); } fputs(" ", stdout); ! if (best) ! if (best->cmdline) print_strlist(stdout, best->cmdline, " ", maxcmd); ! else printf("%*.*s", maxcmd, maxcmd, best->cmd); ! else printf("-"); fputc('\n', stdout); } --- 201,217 ---- print_time_ival7(idletime(u, tty), 0, stdout); } fputs(" ", stdout); ! if (best) { ! if (best->cmdline){ print_strlist(stdout, best->cmdline, " ", maxcmd); ! } ! else { printf("%*.*s", maxcmd, maxcmd, best->cmd); ! } ! } ! else{ printf("-"); + } fputc('\n', stdout); } *************** *** 231,244 **** merid = (hour < 12) ? "am" : "pm"; if (hour >= 12) hour -= 12; if (hour == 0) hour = 12; ! if (curt - logt > 12*60*60 && logtm->tm_yday != today) ! if (curt - logt > 6*24*60*60) fprintf(fout, " %2d%3s%2d", logtm->tm_mday, month[logtm->tm_mon], logtm->tm_year % 100); ! else fprintf(fout, " %3s%2d%s", weekday[logtm->tm_wday], hour, merid); ! else fprintf(fout, " %2d:%02d%s", hour, logtm->tm_min, merid); } /* This function scans the process table accumulating total cpu times for --- 235,252 ---- merid = (hour < 12) ? "am" : "pm"; if (hour >= 12) hour -= 12; if (hour == 0) hour = 12; ! if (curt - logt > 12*60*60 && logtm->tm_yday != today){ ! if (curt - logt > 6*24*60*60){ fprintf(fout, " %2d%3s%2d", logtm->tm_mday, month[logtm->tm_mon], logtm->tm_year % 100); ! } ! else{ fprintf(fout, " %3s%2d%s", weekday[logtm->tm_wday], hour, merid); ! } ! } ! else{ fprintf(fout, " %2d:%02d%s", hour, logtm->tm_min, merid); + } } /* This function scans the process table accumulating total cpu times for