From 2577e20f090538841066c75539ab6f3d618b68ee Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 26 Sep 2016 12:18:17 +0200 Subject: [PATCH] ntp: fix updating of transmit delay in symmetric mode This was broken in commit cea21adbbbaf38271e33cd8b412c55ee541c0c37. --- ntp_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ntp_core.c b/ntp_core.c index c8e01c9..7ade227 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -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 */