summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-list-sessions.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-11-03 20:29:48 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-11-03 20:29:48 +0000
commita8a4d48ee1dfe73c5bcc706b5c609853ef3c845e (patch)
tree3ff428ffed017eccca95f520f900ab78a706fc35 /usr.bin/tmux/cmd-list-sessions.c
parentb880b2e87435f2810857d787e3800aff820ff7d4 (diff)
Change session and client activity and creation time members to have more
meaningful names. Also, remove the code to try and update the session activity time for the command client when a command message is received as is pointless because it des not have a session.
Diffstat (limited to 'usr.bin/tmux/cmd-list-sessions.c')
-rw-r--r--usr.bin/tmux/cmd-list-sessions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-list-sessions.c b/usr.bin/tmux/cmd-list-sessions.c
index 74ecc6e2682..7caa943c080 100644
--- a/usr.bin/tmux/cmd-list-sessions.c
+++ b/usr.bin/tmux/cmd-list-sessions.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-list-sessions.c,v 1.4 2009/10/10 10:02:48 nicm Exp $ */
+/* $OpenBSD: cmd-list-sessions.c,v 1.5 2009/11/03 20:29:47 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -61,7 +61,7 @@ cmd_list_sessions_exec(unused struct cmd *self, struct cmd_ctx *ctx)
xsnprintf(tmp, sizeof tmp, " (group %u)", idx);
}
- t = s->tv.tv_sec;
+ t = s->creation_time.tv_sec;
tim = ctime(&t);
*strchr(tim, '\n') = '\0';