diff options
Diffstat (limited to 'cmd.c')
-rw-r--r-- | cmd.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -362,9 +362,9 @@ cmd_newest_session(struct sessions *ss) if ((s = ARRAY_ITEM(ss, i)) == NULL) continue; - if (tv == NULL || timercmp(&s->tv, tv, >)) { + if (tv == NULL || timercmp(&s->creation_time, tv, >)) { snewest = s; - tv = &s->tv; + tv = &s->creation_time; } } @@ -386,9 +386,9 @@ cmd_newest_client(void) if (c->session == NULL) continue; - if (tv == NULL || timercmp(&c->tv, tv, >)) { + if (tv == NULL || timercmp(&c->creation_time, tv, >)) { cnewest = c; - tv = &c->tv; + tv = &c->creation_time; } } |