summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-05-01 00:58:03 +0000
committerMiles Bader <miles@gnu.org>1996-05-01 00:58:03 +0000
commit19ae1de6cebe6df06ee52d020920e412acd492a7 (patch)
treedb143c589839b13686dcab3c92963b74cd2a0870 /utils
parentf465ff27f340399be3b52c455e8f865667a1bfca (diff)
(_w_specs): Use ps_emit_past_time to show login times.
Diffstat (limited to 'utils')
-rw-r--r--utils/w.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/w.c b/utils/w.c
index 4230dc3e..dfae7f95 100644
--- a/utils/w.c
+++ b/utils/w.c
@@ -195,13 +195,13 @@ w_get_host (struct proc_stat *ps, char **host, unsigned *host_len)
const struct ps_getter w_host_getter =
{"host", W_PSTAT_HOST, w_get_host};
-extern error_t ps_emit_time (), ps_emit_string (), ps_emit_minutes ();
+extern error_t ps_emit_past_time (), ps_emit_string (), ps_emit_minutes ();
extern int ps_cmp_times (), ps_cmp_strings ();
const struct ps_fmt_spec _w_specs[] =
{
{"USER", 0, UT_NAMESIZE, &w_user_getter, ps_emit_string, ps_cmp_strings},
- {"LOGIN", "LOGIN@", -7, &w_login_getter, /*ps_emit_time*/ps_emit_minutes, ps_cmp_times},
+ {"LOGIN", "LOGIN@", -7, &w_login_getter, ps_emit_past_time, ps_cmp_times},
{"FROM", 0, UT_HOSTSIZE, &w_host_getter, ps_emit_string, ps_cmp_strings},
{"IDLE", 0, -5, &w_idle_getter, ps_emit_minutes, ps_cmp_times},
{"WHAT=args"},