]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
sourcestats: report offset even with single sample
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 6 Aug 2019 13:54:38 +0000 (15:54 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 6 Aug 2019 14:11:07 +0000 (16:11 +0200)
sourcestats.c

index 57f3e0cf9de299f66210586c6284bcbd39cb143e..d0514c30f08da5e3d643dbac9cee810c9336e905 100644 (file)
@@ -1019,7 +1019,7 @@ SST_DoSourcestatsReport(SST_Stats inst, RPT_SourcestatsReport *report, struct ti
   report->n_samples = inst->n_samples;
   report->n_runs = inst->nruns;
 
-  if (inst->n_samples > 1) {
+  if (inst->n_samples > 0) {
     bi = get_runsbuf_index(inst, inst->best_single_sample);
     bj = get_buf_index(inst, inst->best_single_sample);