From 5289da29ba2fdf15413ec94fa7f2838469abccae Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 3 Nov 2009 20:29:47 +0000 Subject: 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. --- session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'session.c') diff --git a/session.c b/session.c index a477634e..8d22ac77 100644 --- a/session.c +++ b/session.c @@ -126,10 +126,10 @@ session_create(const char *name, const char *cmd, const char *cwd, s = xmalloc(sizeof *s); s->references = 0; s->flags = 0; - s->activity = time(NULL); - if (gettimeofday(&s->tv, NULL) != 0) + if (gettimeofday(&s->creation_time, NULL) != 0) fatal("gettimeofday failed"); + memcpy(&s->activity_time, &s->creation_time, sizeof s->activity_time); s->curw = NULL; TAILQ_INIT(&s->lastw); -- cgit v1.2.3