diff options
Diffstat (limited to 'contrib/ntp/ntpd/refclock_usno.c')
-rw-r--r-- | contrib/ntp/ntpd/refclock_usno.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/ntp/ntpd/refclock_usno.c b/contrib/ntp/ntpd/refclock_usno.c index 30a1330..057eef9 100644 --- a/contrib/ntp/ntpd/refclock_usno.c +++ b/contrib/ntp/ntpd/refclock_usno.c @@ -344,8 +344,9 @@ usno_receive( * protocol module to chuck out the data. Finaly, we unhook the * timeout, arm for the next call, fold the tent and go home. */ - record_clock_stats(&peer->srcadr, pp->a_lastcode); + pp->lastref = pp->lastrec; refclock_receive(peer); + record_clock_stats(&peer->srcadr, pp->a_lastcode); pp->sloppyclockflag &= ~CLK_FLAG1; up->pollcnt = 0; up->state = 0; @@ -437,7 +438,7 @@ usno_timeout( peer->nextdate = current_time + ANSWER; return; } - switch (peer->ttlmax) { + switch (peer->ttl) { /* * In manual mode the calling program is activated |