diff options
author | Matt Johnston <matt@ucc.asn.au> | 2014-03-13 23:50:09 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2014-03-13 23:50:09 +0800 |
commit | e767bbb41f277ebb8f477e5cda5b97a3a52b08a7 (patch) | |
tree | 79e85d770254e5a929aa6d3e09974cbf1fdd6d2e /svr-session.c | |
parent | 2b599df57abf70963706b62604ecc2c421b549da (diff) |
Add new monotonic_now() wrapper so that timeouts are unaffected by
system clock changes
Diffstat (limited to 'svr-session.c')
-rw-r--r-- | svr-session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svr-session.c b/svr-session.c index e9fde24..2adcb01 100644 --- a/svr-session.c +++ b/svr-session.c @@ -95,7 +95,7 @@ void svr_session(int sock, int childpipe) { chaninitialise(svr_chantypes); svr_chansessinitialise(); - ses.connect_time = time(NULL); + ses.connect_time = monotonic_now(); /* for logging the remote address */ get_socket_address(ses.sock_in, NULL, NULL, &host, &port, 0); |