diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-09-10 08:58:15 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-09-10 08:58:15 +0000 |
commit | b955f91039c600cc9ebad4b4a26b2b3b17ac40c4 (patch) | |
tree | 1d55cf5330e1e82eaa326b91d6f93ba7de57d7f6 /usr.bin/tmux/cmd-switch-client.c | |
parent | e574bf2f3e3ca84e5c96f5c4cae158d03b2427f0 (diff) |
Add session_last_attached time and format, from Sina Siadat.
Diffstat (limited to 'usr.bin/tmux/cmd-switch-client.c')
-rw-r--r-- | usr.bin/tmux/cmd-switch-client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-switch-client.c b/usr.bin/tmux/cmd-switch-client.c index d52655867be..6a6c15eaa7d 100644 --- a/usr.bin/tmux/cmd-switch-client.c +++ b/usr.bin/tmux/cmd-switch-client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-switch-client.c,v 1.29 2015/08/28 13:01:03 nicm Exp $ */ +/* $OpenBSD: cmd-switch-client.c,v 1.30 2015/09/10 08:58:14 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -129,6 +129,7 @@ cmd_switch_client_exec(struct cmd *self, struct cmd_q *cmdq) c->session = s; status_timer_start(c); session_update_activity(s, NULL); + gettimeofday(&s->last_attached_time, NULL); recalculate_sizes(); server_check_unattached(); |