mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 05:25:08 -05:00
Add dispersion notification handlers
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user