From eeb73b3670b79419a2b48b22fd693b639633f051 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 16 Aug 2010 16:44:49 +0200 Subject: [PATCH] Fix updating of best_single_sample --- sourcestats.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sourcestats.c b/sourcestats.c index e398c9d..6fa0d5a 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); }