abduco

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 57e7acba693f3592733ceb48041ec6894624ba36
parent e08d7acc3af177bd46a3ee6703f57cb66bf82ac8
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Fri,  7 Aug 2015 17:00:16 +0200

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.

Diffstat:
abduco.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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) {