Skip to content

Commit

Permalink
Pick newest session as documented, not oldest, from Magnus Gross.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed Apr 4, 2024
1 parent 6207a45 commit a28175d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server-fn.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ server_find_session(struct session *s,
static int
server_newer_session(struct session *s_loop, struct session *s_out)
{
return (timercmp(&s_loop->activity_time, &s_out->activity_time, <));
return (timercmp(&s_loop->activity_time, &s_out->activity_time, >));
}

static int
Expand Down

0 comments on commit a28175d

Please sign in to comment.