summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-11-24 21:52:06 +0000
committernicm <nicm@openbsd.org>2015-11-24 21:52:06 +0000
commit8c1ade3826129a5c83af9665094da4e67123ab6e (patch)
tree3b7bd749c81aafa3776d504d5a3ab26c8a8df552 /usr.bin/tmux/server.c
parentAll kill-session -C to clear alerts in all windows, suggested by Aaron (diff)
downloadwireguard-openbsd-8c1ade3826129a5c83af9665094da4e67123ab6e.tar.xz
wireguard-openbsd-8c1ade3826129a5c83af9665094da4e67123ab6e.zip
Remove the -I part of show-messages which isn't really that useful; the
server start time can now be accessed with a new start_time format (use: tmux display -p '#{t:start_time}')
Diffstat (limited to 'usr.bin/tmux/server.c')
-rw-r--r--usr.bin/tmux/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c
index 657d77beca2..4ae2fb88bce 100644
--- a/usr.bin/tmux/server.c
+++ b/usr.bin/tmux/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.152 2015/11/24 21:19:46 nicm Exp $ */
+/* $OpenBSD: server.c,v 1.153 2015/11/24 21:52:06 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -187,7 +187,7 @@ server_start(struct event_base *base, int lockfd, char *lockfile)
mode_key_init_trees();
key_bindings_init();
- start_time = time(NULL);
+ gettimeofday(&start_time, NULL);
server_fd = server_create_socket();
if (server_fd == -1)