Drop unused SST_GetReferenceData()
This commit is contained in:
parent
030e3b2dab
commit
2b9fe764d5
2 changed files with 0 additions and 39 deletions
|
@ -488,36 +488,6 @@ SST_DoNewRegression(SST_Stats inst)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ================================================== */
|
|
||||||
|
|
||||||
void
|
|
||||||
SST_GetReferenceData(SST_Stats inst, struct timeval *now,
|
|
||||||
int *stratum, double *offset,
|
|
||||||
double *root_delay, double *root_dispersion,
|
|
||||||
double *frequency, double *skew)
|
|
||||||
{
|
|
||||||
|
|
||||||
double elapsed;
|
|
||||||
int i, j;
|
|
||||||
|
|
||||||
*frequency = inst->estimated_frequency;
|
|
||||||
*skew = inst->skew;
|
|
||||||
|
|
||||||
i = get_runsbuf_index(inst, inst->best_single_sample);
|
|
||||||
j = get_buf_index(inst, inst->best_single_sample);
|
|
||||||
|
|
||||||
UTI_DiffTimevalsToDouble(&elapsed, now, &inst->sample_times[i]);
|
|
||||||
*root_delay = inst->root_delays[j];
|
|
||||||
*root_dispersion = inst->root_dispersions[j] + elapsed * inst->skew;
|
|
||||||
*offset = inst->offsets[i] + elapsed * inst->estimated_frequency;
|
|
||||||
*stratum = inst->strata[j];
|
|
||||||
|
|
||||||
#ifdef TRACEON
|
|
||||||
LOG(LOGS_INFO, LOGF_SourceStats, "n=%d freq=%f skew=%f del=%f disp=%f ofs=%f str=%d",
|
|
||||||
inst->n_samples, *frequency, *skew, *root_delay, *root_dispersion, *offset, *stratum);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ================================================== */
|
/* ================================================== */
|
||||||
/* Return the assumed worst case range of values that this source's
|
/* Return the assumed worst case range of values that this source's
|
||||||
frequency lies within. Frequency is defined as the amount of time
|
frequency lies within. Frequency is defined as the amount of time
|
||||||
|
|
|
@ -94,15 +94,6 @@ SST_GetTrackingData(SST_Stats inst, struct timeval *ref_time,
|
||||||
double *frequency, double *skew,
|
double *frequency, double *skew,
|
||||||
double *root_delay, double *root_dispersion);
|
double *root_delay, double *root_dispersion);
|
||||||
|
|
||||||
/* Get parameters for using this source as the reference */
|
|
||||||
extern void
|
|
||||||
SST_GetReferenceData(SST_Stats inst, struct timeval *now,
|
|
||||||
int *stratum, double *offset,
|
|
||||||
double *root_delay, double *root_dispersion,
|
|
||||||
double *frequency, double *skew);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* This routine is called when the local machine clock parameters are
|
/* This routine is called when the local machine clock parameters are
|
||||||
changed. It adjusts all existing samples that we are holding for
|
changed. It adjusts all existing samples that we are holding for
|
||||||
each peer so that it looks like they were made under the new clock
|
each peer so that it looks like they were made under the new clock
|
||||||
|
|
Loading…
Reference in a new issue