summaryrefslogtreecommitdiffhomepage
path: root/packet.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2014-03-13 23:50:09 +0800
committerMatt Johnston <matt@ucc.asn.au>2014-03-13 23:50:09 +0800
commite767bbb41f277ebb8f477e5cda5b97a3a52b08a7 (patch)
tree79e85d770254e5a929aa6d3e09974cbf1fdd6d2e /packet.c
parent2b599df57abf70963706b62604ecc2c421b549da (diff)
Add new monotonic_now() wrapper so that timeouts are unaffected by
system clock changes
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/packet.c b/packet.c
index 8f7aa38..5f38f08 100644
--- a/packet.c
+++ b/packet.c
@@ -151,7 +151,7 @@ void write_packet() {
}
#endif
- now = time(NULL);
+ now = monotonic_now();
ses.last_trx_packet_time = now;
if (!all_ignore) {