mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 02:25:07 -05:00
Set minimum allowed skew to 1e-12
This commit is contained in:
@@ -541,10 +541,10 @@ REF_SetReference(int stratum,
|
|||||||
assert(initialised);
|
assert(initialised);
|
||||||
|
|
||||||
/* Avoid getting NaNs */
|
/* Avoid getting NaNs */
|
||||||
if (skew == 0.0)
|
if (skew < 1e-12)
|
||||||
skew = 1e-10;
|
skew = 1e-12;
|
||||||
if (our_skew == 0.0)
|
if (our_skew < 1e-12)
|
||||||
our_skew = 1e-10;
|
our_skew = 1e-12;
|
||||||
|
|
||||||
/* If we get a serious rounding error in the source stats regression
|
/* If we get a serious rounding error in the source stats regression
|
||||||
processing, there is a remote chance that the skew argument is a
|
processing, there is a remote chance that the skew argument is a
|
||||||
|
|||||||
Reference in New Issue
Block a user