From 73c9b25d2d0e40a657073489311a4ecd1643362c Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 3 Jun 2008 18:13:54 +0000 Subject: It is too easy to create things in the same second; use a timespec instead. --- cmd-list-sessions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd-list-sessions.c') diff --git a/cmd-list-sessions.c b/cmd-list-sessions.c index fab1064b..0b112e96 100644 --- a/cmd-list-sessions.c +++ b/cmd-list-sessions.c @@ -1,4 +1,4 @@ -/* $Id: cmd-list-sessions.c,v 1.12 2008-06-03 05:35:51 nicm Exp $ */ +/* $Id: cmd-list-sessions.c,v 1.13 2008-06-03 18:13:54 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -56,7 +56,7 @@ cmd_list_sessions_exec(unused void *ptr, struct cmd_ctx *ctx) n = 0; RB_FOREACH(wl, winlinks, &s->windows) n++; - tim = ctime(&s->tim); + tim = ctime(&s->ts.tv_sec); *strchr(tim, '\n') = '\0'; ctx->print(ctx, "%s: %u windows" -- cgit