sourcestats: report offset even with single sample

This commit is contained in:
Miroslav Lichvar 2019-08-06 15:54:38 +02:00
parent bf6a4e1a81
commit a6d9f41eda

View 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);