]> git.ipfire.org Git - thirdparty/chrony.git/commit
sourcestats: include precision in weight calculation
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 21 Jun 2017 15:48:26 +0000 (17:48 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 27 Jun 2017 13:29:01 +0000 (15:29 +0200)
commit7fb7f95979de6ab90557478e89fa74e9fc15fce3
treece4ecb64c43c725200b04dd601e399b74ded0eec
parentcc507bffae8ce8215fb3c14fc63b070be7418bbd
sourcestats: include precision in weight calculation

In order to stabilize the weights of refclock samples which have only
slightly different distances, don't allow the stddev value used in the
weight calculation to be smaller than the precision and also assign
weight of 1 to all samples which have distance < minimum + precision.
sourcestats.c