From: Bill Unruh Date: Tue, 26 Jun 2007 22:45:04 +0000 (+0100) Subject: Handle fluctuations in peer distance better. X-Git-Tag: 1.23-pre1~2^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8022874a47fce4345e7bb273f3e8967d977d8766;p=thirdparty%2Fchrony.git Handle fluctuations in peer distance better. --- diff --git a/sourcestats.c b/sourcestats.c index fecba314..163a2ebd 100644 --- a/sourcestats.c +++ b/sourcestats.c @@ -373,9 +373,9 @@ find_best_sample_index(SST_Stats inst, double *times_back) /* This defines the assumed ratio between the standard deviation of the samples and the peer distance as measured from the round trip time. E.g. a value of 4 means that we think the standard deviation - is a quarter of the peer distance */ + is four times the fluctuation of the peer distance */ -#define SD_TO_DIST_RATIO 8.0 +#define SD_TO_DIST_RATIO 1.0 /* ================================================== */ /* This function runs the linear regression operation on the data. It