Add dispersion after Linux makestep
This commit is contained in:
parent
74cb1c877c
commit
c15db71f9e
1 changed files with 8 additions and 0 deletions
|
@ -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();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue