]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Fix updating of best_single_sample
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 16 Aug 2010 14:44:49 +0000 (16:44 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 16 Aug 2010 14:44:49 +0000 (16:44 +0200)
sourcestats.c

index e398c9d3cd7c1156d972b453806c42d8a1f8b0a6..6fa0d5aeac96682faf9d8ce2d666d88c5d868ba6 100644 (file)
@@ -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);
 
 }