From: Miroslav Lichvar Date: Tue, 6 Aug 2019 13:54:38 +0000 (+0200) Subject: sourcestats: report offset even with single sample X-Git-Tag: 4.0-pre1~158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6d9f41eda4e4ec524907de84c1703fcf8ca9f7f;p=thirdparty%2Fchrony.git sourcestats: report offset even with single sample --- diff --git a/sourcestats.c b/sourcestats.c index 57f3e0cf..d0514c30 100644 --- a/sourcestats.c +++ b/sourcestats.c @@ -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);