aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/ntp/ntpd/ntp_loopfilter.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/ntpd/ntp_loopfilter.c')
-rw-r--r--contrib/ntp/ntpd/ntp_loopfilter.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/contrib/ntp/ntpd/ntp_loopfilter.c b/contrib/ntp/ntpd/ntp_loopfilter.c
index 4b38aa8fd7d4..c8320c480196 100644
--- a/contrib/ntp/ntpd/ntp_loopfilter.c
+++ b/contrib/ntp/ntpd/ntp_loopfilter.c
@@ -701,9 +701,10 @@ local_clock(
* where the FLL becomes effective.
*/
if (sys_poll >= allan_xpt)
- clock_frequency += (fp_offset -
- clock_offset) / max(ULOGTOD(sys_poll),
- mu) * CLOCK_FLL;
+ clock_frequency +=
+ (fp_offset - clock_offset)
+ / ( max(ULOGTOD(sys_poll), mu)
+ * CLOCK_FLL);
/*
* The PLL frequency gain (numerator) depends on
@@ -713,8 +714,8 @@ local_clock(
*/
etemp = min(ULOGTOD(allan_xpt), mu);
dtemp = 4 * CLOCK_PLL * ULOGTOD(sys_poll);
- clock_frequency += fp_offset * etemp / (dtemp *
- dtemp);
+ clock_frequency +=
+ fp_offset * etemp / (dtemp * dtemp);
}
rstclock(EVNT_SYNC, fp_offset);
if (fabs(fp_offset) < CLOCK_FLOOR)