Add dispersion notification handlers

This commit is contained in:
Miroslav Lichvar
2010-02-16 18:16:03 +01:00
parent 8cb6fcad7e
commit 0f70959d8e
4 changed files with 61 additions and 2 deletions

View File

@@ -717,6 +717,19 @@ SST_SlewSamples(SST_Stats inst, struct timeval *when, double dfreq, double doffs
/* ================================================== */
void
SST_AddDispersion(SST_Stats inst, double dispersion)
{
int i;
for (i=0; i < inst->n_samples; i++) {
inst->root_dispersions[i] += dispersion;
inst->peer_dispersions[i] += dispersion;
}
}
/* ================================================== */
double
SST_PredictOffset(SST_Stats inst, struct timeval *when)
{