From: Miroslav Lichvar Date: Thu, 8 Dec 2016 10:21:13 +0000 (+0100) Subject: hwclock: fix check of sample separation X-Git-Tag: 3.0-pre1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2d2cad38466c285dd0bca8d84c0c4a040054067;p=thirdparty%2Fchrony.git hwclock: fix check of sample separation --- diff --git a/hwclock.c b/hwclock.c index bd94f343..5ddd5b58 100644 --- a/hwclock.c +++ b/hwclock.c @@ -112,7 +112,7 @@ int HCL_NeedsNewSample(HCL_Instance clock, struct timespec *now) { if (!clock->n_samples || - fabs(UTI_DiffTimespecsToDouble(now, &clock->local_ref) >= MIN_SAMPLE_SEPARATION)) + fabs(UTI_DiffTimespecsToDouble(now, &clock->local_ref)) >= MIN_SAMPLE_SEPARATION) return 1; return 0;