From: Miroslav Lichvar Date: Mon, 16 Aug 2010 14:44:49 +0000 (+0200) Subject: Fix updating of best_single_sample X-Git-Tag: 1.25-pre1~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eeb73b3670b79419a2b48b22fd693b639633f051;p=thirdparty%2Fchrony.git Fix updating of best_single_sample --- diff --git a/sourcestats.c b/sourcestats.c index e398c9d3..6fa0d5ae 100644 --- a/sourcestats.c +++ b/sourcestats.c @@ -425,9 +425,10 @@ SST_DoNewRegression(SST_Stats inst) #endif inst->estimated_frequency = 0.0; inst->skew = WORST_CASE_FREQ_BOUND; + best_start = 0; } - find_best_sample_index(inst, times_back); + find_best_sample_index(inst, times_back + best_start); }