aboutsummaryrefslogtreecommitdiff
path: root/networking/ntpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/ntpd.c')
-rw-r--r--networking/ntpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c
index 5cc71ca7a..73d27ac20 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -393,7 +393,7 @@ struct globals {
393 * too big and we will step. I observed it with -6. 393 * too big and we will step. I observed it with -6.
394 * 394 *
395 * OTOH, setting precision_sec far too small would result in futile 395 * OTOH, setting precision_sec far too small would result in futile
396 * attempts to syncronize to an unachievable precision. 396 * attempts to synchronize to an unachievable precision.
397 * 397 *
398 * -6 is 1/64 sec, -7 is 1/128 sec and so on. 398 * -6 is 1/64 sec, -7 is 1/128 sec and so on.
399 * -8 is 1/256 ~= 0.003906 (worked well for me --vda) 399 * -8 is 1/256 ~= 0.003906 (worked well for me --vda)
@@ -754,7 +754,7 @@ reset_peer_stats(peer_t *p, double offset)
754 bool small_ofs = fabs(offset) < STEP_THRESHOLD; 754 bool small_ofs = fabs(offset) < STEP_THRESHOLD;
755 755
756 /* Used to set p->filter_datapoint[i].d_dispersion = MAXDISP 756 /* Used to set p->filter_datapoint[i].d_dispersion = MAXDISP
757 * and clear reachable bits, but this proved to be too agressive: 757 * and clear reachable bits, but this proved to be too aggressive:
758 * after step (tested with suspending laptop for ~30 secs), 758 * after step (tested with suspending laptop for ~30 secs),
759 * this caused all previous data to be considered invalid, 759 * this caused all previous data to be considered invalid,
760 * making us needing to collect full ~8 datapoints per peer 760 * making us needing to collect full ~8 datapoints per peer
@@ -1715,7 +1715,7 @@ update_local_clock(peer_t *p)
1715 * It looks like Linux kernel's PLL is far too gentle in changing 1715 * It looks like Linux kernel's PLL is far too gentle in changing
1716 * tmx.freq in response to clock offset. Offset keeps growing 1716 * tmx.freq in response to clock offset. Offset keeps growing
1717 * and eventually we fall back to smaller poll intervals. 1717 * and eventually we fall back to smaller poll intervals.
1718 * We can make correction more agressive (about x2) by supplying 1718 * We can make correction more aggressive (about x2) by supplying
1719 * PLL time constant which is one less than the real one. 1719 * PLL time constant which is one less than the real one.
1720 * To be on a safe side, let's do it only if offset is significantly 1720 * To be on a safe side, let's do it only if offset is significantly
1721 * larger than jitter. 1721 * larger than jitter.