diff options
author | Miles Bader <miles@gnu.org> | 1996-05-01 00:58:03 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-05-01 00:58:03 +0000 |
commit | 19ae1de6cebe6df06ee52d020920e412acd492a7 (patch) | |
tree | db143c589839b13686dcab3c92963b74cd2a0870 /utils/w.c | |
parent | f465ff27f340399be3b52c455e8f865667a1bfca (diff) |
(_w_specs): Use ps_emit_past_time to show login times.
Diffstat (limited to 'utils/w.c')
-rw-r--r-- | utils/w.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"}, |