From 8022874a47fce4345e7bb273f3e8967d977d8766 Mon Sep 17 00:00:00 2001 From: Bill Unruh Date: Tue, 26 Jun 2007 23:45:04 +0100 Subject: [PATCH] Handle fluctuations in peer distance better. --- sourcestats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sourcestats.c b/sourcestats.c index fecba31..163a2eb 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