From 57e7acba693f3592733ceb48041ec6894624ba36 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 7 Aug 2015 17:00:16 +0200 Subject: [PATCH] Display more meaningful time in session list Due to the stale session detection logic we will always access the socket thus essentially printing the current time which does not seem useful. --- abduco.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abduco.c b/abduco.c index 798b224..6a2ba40 100644 --- a/abduco.c +++ b/abduco.c @@ -553,7 +553,7 @@ static int list_session(void) { while (n--) { struct stat sb; char buf[255]; if (stat(namelist[n]->d_name, &sb) == 0 && S_ISSOCK(sb.st_mode)) { - strftime(buf, sizeof(buf), "%a%t %F %T", localtime(&sb.st_atime)); + strftime(buf, sizeof(buf), "%a%t %F %T", localtime(&sb.st_mtime)); char status = ' '; char *local = strstr(namelist[n]->d_name, server.host); if (local) { -- 2.11.4.GIT