From 854ff69f782875a340c15213f1bb8c4fc700f717 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Fri, 30 Jun 2017 09:40:06 +0200 Subject: [PATCH] hwclock: decrease tolerance of robust regression to 0.1 ppb --- hwclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hwclock.c b/hwclock.c index cae6260..b816127 100644 --- a/hwclock.c +++ b/hwclock.c @@ -161,7 +161,7 @@ HCL_AccumulateSample(HCL_Instance clock, struct timespec *hw_ts, clock->valid_coefs = RGR_FindBestRobustRegression(clock->x_data + MAX_SAMPLES - clock->n_samples, clock->y_data + MAX_SAMPLES - clock->n_samples, - clock->n_samples, 1.0e-9, &clock->offset, &raw_freq, + clock->n_samples, 1.0e-10, &clock->offset, &raw_freq, &n_runs, &best_start); if (!clock->valid_coefs) {