From: Miroslav Lichvar Date: Fri, 17 Aug 2018 06:39:30 +0000 (+0200) Subject: reference: fix offset SD to include elapsed time X-Git-Tag: 3.4-pre1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1f2f173854e7e76ebf097830187708a17c9ecb6;p=thirdparty%2Fchrony.git reference: fix offset SD to include elapsed time This should slow down corrections based on old measurements with large estimated error in frequency. --- diff --git a/reference.c b/reference.c index db68c06b..71737c88 100644 --- a/reference.c +++ b/reference.c @@ -985,6 +985,7 @@ REF_SetReference(int stratum, elapsed = UTI_DiffTimespecsToDouble(&now, ref_time); our_offset = offset + elapsed * frequency; + offset_sd += elapsed * frequency_sd; if (!is_offset_ok(our_offset)) return;