showhost :1, /* Show hostname */
altlist :1, /* Hostname at the end */
usedns :1, /* Use DNS to lookup the hostname */
- useip :1, /* Print IP address in number format */
- fulltime :1; /* Print full dates and times */
+ useip :1; /* Print IP address in number format */
unsigned int name_len; /* Number of login name characters to print */
unsigned int domain_len; /* Number of domain name characters to print */
epoch = time(NULL);
if (t == epoch) {
- if (ctl->fulltime) {
+ if (ctl->time_fmt > LAST_TIMEFTM_SHORT_CTIME) {
sprintf(logouttime, " still running");
length[0] = 0;
} else {
break;
case R_NOW:
length[0] = 0;
- if (ctl->fulltime)
+ if (ctl->time_fmt > LAST_TIMEFTM_SHORT_CTIME)
sprintf(logouttime, " still logged in");
else {
sprintf(logouttime, " still");
break;
case R_PHANTOM:
length[0] = 0;
- if (ctl->fulltime)
+ if (ctl->time_fmt > LAST_TIMEFTM_SHORT_CTIME)
sprintf(logouttime, " gone - no logout");
else {
sprintf(logouttime, " gone");
ctl.altlist = 1;
break;
case 'F':
- ctl.fulltime = 1;
ctl.time_fmt = LAST_TIMEFTM_FULL_CTIME;
break;
case 'p':
break;
case OPT_TIME_FORMAT:
ctl.time_fmt = which_time_format(optarg);
- if (ctl.time_fmt == LAST_TIMEFTM_ISO8601)
- ctl.fulltime = 1;
break;
default:
usage(stderr);