]> git.ipfire.org Git - thirdparty/chrony.git/commit
sourcestats: update offset estimate when regression fails
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 5 Aug 2019 13:25:04 +0000 (15:25 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 6 Aug 2019 11:04:59 +0000 (13:04 +0200)
commit24134c78e89b5c13c9a972dd6bfaf0c77083b368
tree7a587c5a185a01a62162d3d5af3acaa26e003754
parent5e8ed72b89602055471a48e62b12b2ab938ddfc2
sourcestats: update offset estimate when regression fails

If there are too few samples to make a regression, at least update the
offset estimate from the last sample and keep the previous frequency
offset unchanged. Also, reset the error estimates.
sourcestats.c