version 1.15, 2001/07/12 05:17:13 |
version 1.16, 2001/07/18 17:17:39 |
|
|
bp->ut_name, UT_LINESIZE, |
bp->ut_name, UT_LINESIZE, |
UT_LINESIZE, bp->ut_line, |
UT_LINESIZE, bp->ut_line, |
HOST_WIDTH, UT_HOSTSIZE, |
HOST_WIDTH, UT_HOSTSIZE, |
bp->ut_host, bp->ut_time); |
bp->ut_host, (long)bp->ut_time); |
} else { |
} else { |
ct = ctime(&bp->ut_time); |
ct = ctime(&bp->ut_time); |
printf("%-*.*s %-*.*s %-*.*s %10.10s %*.*s \n", |
printf("%-*.*s %-*.*s %-*.*s %10.10s %*.*s \n", |
|
|
NAME_WIDTH, UT_NAMESIZE, bp->ut_name, |
NAME_WIDTH, UT_NAMESIZE, bp->ut_name, |
UT_LINESIZE, UT_LINESIZE, bp->ut_line, |
UT_LINESIZE, UT_LINESIZE, bp->ut_line, |
HOST_WIDTH, UT_HOSTSIZE, bp->ut_host, |
HOST_WIDTH, UT_HOSTSIZE, bp->ut_host, |
bp->ut_time); |
(long)bp->ut_time); |
} else { |
} else { |
ct = ctime(&bp->ut_time); |
ct = ctime(&bp->ut_time); |
printf("%-*.*s %-*.*s %-*.*s %10.10s %*.*s \n", |
printf("%-*.*s %-*.*s %-*.*s %10.10s %*.*s \n", |
|
|
NAME_WIDTH, UT_NAMESIZE, bp->ut_name, |
NAME_WIDTH, UT_NAMESIZE, bp->ut_name, |
UT_LINESIZE, UT_LINESIZE, bp->ut_line, |
UT_LINESIZE, UT_LINESIZE, bp->ut_line, |
HOST_WIDTH, UT_HOSTSIZE, bp->ut_host, |
HOST_WIDTH, UT_HOSTSIZE, bp->ut_host, |
bp->ut_time); |
(long)bp->ut_time); |
} else { |
} else { |
ct = ctime(&bp->ut_time); |
ct = ctime(&bp->ut_time); |
printf("%-*.*s %-*.*s %-*.*s %10.10s %*.*s ", |
printf("%-*.*s %-*.*s %-*.*s %10.10s %*.*s ", |
|
|
} else { |
} else { |
if (seconds) |
if (seconds) |
printf("- %ld", |
printf("- %ld", |
T->logout); |
(long)T->logout); |
else |
else |
printf("- %*.*s", |
printf("- %*.*s", |
timesize, timesize, |
timesize, timesize, |
|
|
} |
} |
delta = T->logout - bp->ut_time; |
delta = T->logout - bp->ut_time; |
if (seconds) |
if (seconds) |
printf(" (%ld)\n", delta); |
printf(" (%ld)\n", (long)delta); |
else { |
else { |
if (delta < SECSPERDAY) |
if (delta < SECSPERDAY) |
printf(" (%*.*s)\n", |
printf(" (%*.*s)\n", |