Add dispersion after Linux makestep

This commit is contained in:
Miroslav Lichvar 2010-04-20 14:26:59 +02:00
parent 74cb1c877c
commit c15db71f9e

View file

@ -528,6 +528,7 @@ apply_step_offset(double offset)
{
struct timeval old_time, new_time;
struct timezone tz;
double err;
if (fast_slewing) {
abort_slew();
@ -543,6 +544,13 @@ apply_step_offset(double offset)
CROAK("settimeofday in apply_step_offset");
}
if (gettimeofday(&old_time, &tz) < 0) {
CROAK("gettimeofday in apply_step_offset");
}
UTI_DiffTimevalsToDouble(&err, &old_time, &new_time);
lcl_InvokeDispersionNotifyHandlers(fabs(err));
initiate_slew();
}