ntp: fix updating of transmit delay in symmetric mode

This was broken in commit cea21adbbb.
This commit is contained in:
Miroslav Lichvar 2016-09-26 12:18:17 +02:00
parent c169ad3f58
commit 2577e20f09

View file

@ -1479,7 +1479,8 @@ receive_packet(NTP_Packet *message, struct timespec *now, double now_err, NCR_In
/* And now, requeue the timer */
if (inst->opmode != MD_OFFLINE) {
delay_time = get_transmit_delay(inst, 0, local_interval);
delay_time = get_transmit_delay(inst, 0,
UTI_DiffTimespecsToDouble(&inst->local_rx, &inst->local_tx));
if (kod_rate) {
/* Back off for a while and stop ongoing burst */