mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 03:45:07 -05:00
sourcestats: report offset even with single sample
This commit is contained in:
@@ -1019,7 +1019,7 @@ SST_DoSourcestatsReport(SST_Stats inst, RPT_SourcestatsReport *report, struct ti
|
|||||||
report->n_samples = inst->n_samples;
|
report->n_samples = inst->n_samples;
|
||||||
report->n_runs = inst->nruns;
|
report->n_runs = inst->nruns;
|
||||||
|
|
||||||
if (inst->n_samples > 1) {
|
if (inst->n_samples > 0) {
|
||||||
bi = get_runsbuf_index(inst, inst->best_single_sample);
|
bi = get_runsbuf_index(inst, inst->best_single_sample);
|
||||||
bj = get_buf_index(inst, inst->best_single_sample);
|
bj = get_buf_index(inst, inst->best_single_sample);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user