From b2964417081843d0cd89f125eb2c06eab5404887 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 14 Mar 2018 14:56:57 +0100 Subject: [PATCH] ntp: fix adjustment of init_local_rx timestamp This fixes commit f0f18a02a7d97a3cfb4cd9977f5ec12c6b1f1028. --- ntp_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntp_core.c b/ntp_core.c index 44d4870..a71ee43 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -2268,7 +2268,7 @@ NCR_SlewTimes(NCR_Instance inst, struct timespec *when, double dfreq, double dof UTI_AdjustTimespec(&inst->prev_local_tx.ts, when, &inst->prev_local_tx.ts, &delta, dfreq, doffset); if (!UTI_IsZeroTimespec(&inst->init_local_rx.ts)) - UTI_AdjustTimespec(&inst->init_local_rx.ts, when, &inst->local_rx.ts, &delta, dfreq, + UTI_AdjustTimespec(&inst->init_local_rx.ts, when, &inst->init_local_rx.ts, &delta, dfreq, doffset); }