Don't update empty sourcestats on clock update
This commit is contained in:
parent
896dad9224
commit
faec23f6bd
1 changed files with 3 additions and 0 deletions
|
@ -619,6 +619,9 @@ SST_SlewSamples(SST_Stats inst, struct timeval *when, double dfreq, double doffs
|
||||||
struct timeval *sample, prev;
|
struct timeval *sample, prev;
|
||||||
double prev_offset, prev_freq;
|
double prev_offset, prev_freq;
|
||||||
|
|
||||||
|
if (!inst->n_samples)
|
||||||
|
return;
|
||||||
|
|
||||||
for (m = -inst->runs_samples; m < inst->n_samples; m++) {
|
for (m = -inst->runs_samples; m < inst->n_samples; m++) {
|
||||||
i = get_runsbuf_index(inst, m);
|
i = get_runsbuf_index(inst, m);
|
||||||
sample = &(inst->sample_times[i]);
|
sample = &(inst->sample_times[i]);
|
||||||
|
|
Loading…
Reference in a new issue