From: Miroslav Lichvar Date: Wed, 26 May 2010 14:55:49 +0000 (+0200) Subject: Set minimum allowed skew to 1e-12 X-Git-Tag: 1.25-pre1~78 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=597bb80d18c6a48d7686e46331ba1d1e1cc18c22;p=thirdparty%2Fchrony.git Set minimum allowed skew to 1e-12 --- diff --git a/reference.c b/reference.c index 19cb8adb..01b53ef5 100644 --- a/reference.c +++ b/reference.c @@ -541,10 +541,10 @@ REF_SetReference(int stratum, assert(initialised); /* Avoid getting NaNs */ - if (skew == 0.0) - skew = 1e-10; - if (our_skew == 0.0) - our_skew = 1e-10; + if (skew < 1e-12) + skew = 1e-12; + if (our_skew < 1e-12) + our_skew = 1e-12; /* If we get a serious rounding error in the source stats regression processing, there is a remote chance that the skew argument is a