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 /process-packet.c | |
parent | 2b599df57abf70963706b62604ecc2c421b549da (diff) |
Add new monotonic_now() wrapper so that timeouts are unaffected by
system clock changes
Diffstat (limited to 'process-packet.c')
-rw-r--r-- | process-packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/process-packet.c b/process-packet.c index 3659cc0..6cbcfc7 100644 --- a/process-packet.c +++ b/process-packet.c @@ -52,7 +52,7 @@ void process_packet() { ses.lastpacket = type; - ses.last_packet_time = time(NULL); + ses.last_packet_time = monotonic_now(); /* These packets we can receive at any time */ switch(type) { |