aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/ntpd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c
index c4b018778..f1f99bb2b 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -1328,7 +1328,9 @@ update_local_clock(peer_t *p)
#if !USING_KERNEL_PLL_LOOP
double freq_drift;
#endif
+#if !USING_KERNEL_PLL_LOOP || USING_INITIAL_FREQ_ESTIMATION
double since_last_update;
+#endif
double etemp, dtemp;
abs_offset = fabs(offset);
@@ -1356,7 +1358,9 @@ update_local_clock(peer_t *p)
* action is and defines how the system reacts to large time
* and frequency errors.
*/
+#if !USING_KERNEL_PLL_LOOP || USING_INITIAL_FREQ_ESTIMATION
since_last_update = recv_time - G.reftime;
+#endif
#if !USING_KERNEL_PLL_LOOP
freq_drift = 0;
#endif