diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-10-03 21:59:07 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-10-03 21:59:07 +0400 |
commit | 9994d48250e3805565f709d39ea0de4877436c6c (patch) | |
tree | 23ef90295715bb672a80da7fb1c7f9614cb2375e /accel-pppd/ppp | |
parent | 8a7290359a446ce04c468b2a598ca75a6e2a9611 (diff) | |
download | accel-ppp-9994d48250e3805565f709d39ea0de4877436c6c.tar.gz accel-ppp-9994d48250e3805565f709d39ea0de4877436c6c.zip |
get rid of time(), use clock_gettime(CLOCK_MONOTONIC) instead
Diffstat (limited to 'accel-pppd/ppp')
-rw-r--r-- | accel-pppd/ppp/ppp_lcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/ppp/ppp_lcp.c b/accel-pppd/ppp/ppp_lcp.c index 54826efc..3dd8708b 100644 --- a/accel-pppd/ppp/ppp_lcp.c +++ b/accel-pppd/ppp/ppp_lcp.c @@ -661,9 +661,9 @@ static void send_echo_request(struct triton_timer_t *t) if (conf_echo_timeout) { if (lcp->echo_sent == 2) { lcp->last_ipackets = stats.rx_packets; - time(&lcp->last_echo_ts); + lcp->last_echo_ts = _time(); } else if (lcp->echo_sent > 2) { - time(&ts); + ts = _time(); if (lcp->last_ipackets != stats.rx_packets) { lcp->echo_sent = 1; lcp_update_echo_timer(lcp); |