From: nicm Date: Thu, 4 Apr 2024 22:44:40 +0000 (+0000) Subject: Pick newest session as documented, not oldest, from Magnus Gross. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5d6bcbf02227fa5ca0951f69e4f112faf0d956cb;p=openbsd Pick newest session as documented, not oldest, from Magnus Gross. --- diff --git a/usr.bin/tmux/server-fn.c b/usr.bin/tmux/server-fn.c index ad01c8ae7fc..e3cd2186cf7 100644 --- a/usr.bin/tmux/server-fn.c +++ b/usr.bin/tmux/server-fn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-fn.c,v 1.136 2024/03/21 11:30:42 nicm Exp $ */ +/* $OpenBSD: server-fn.c,v 1.137 2024/04/04 22:44:40 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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