comparison packet.c @ 928:7cd89d4e0335

Add new monotonic_now() wrapper so that timeouts are unaffected by system clock changes
author Matt Johnston <matt@ucc.asn.au>
date Thu, 13 Mar 2014 23:50:09 +0800
parents b8208506322e
children 3873b39c4de6
comparison
equal deleted inserted replaced
927:122fb3532038 928:7cd89d4e0335
149 /* More packet left to write, leave it in the queue for later */ 149 /* More packet left to write, leave it in the queue for later */
150 buf_incrpos(writebuf, written); 150 buf_incrpos(writebuf, written);
151 } 151 }
152 152
153 #endif 153 #endif
154 now = time(NULL); 154 now = monotonic_now();
155 ses.last_trx_packet_time = now; 155 ses.last_trx_packet_time = now;
156 156
157 if (!all_ignore) { 157 if (!all_ignore) {
158 ses.last_packet_time = now; 158 ses.last_packet_time = now;
159 } 159 }