mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 00:15:07 -05:00
Don't forget to shift last class dispatch timevals on step
This commit is contained in:
8
sched.c
8
sched.c
@@ -496,7 +496,7 @@ handle_slew(struct timeval *raw,
|
|||||||
void *anything)
|
void *anything)
|
||||||
{
|
{
|
||||||
TimerQueueEntry *ptr;
|
TimerQueueEntry *ptr;
|
||||||
struct timeval T1;
|
int i;
|
||||||
|
|
||||||
if (is_step_change) {
|
if (is_step_change) {
|
||||||
/* We're not interested in anything else - it won't affect the
|
/* We're not interested in anything else - it won't affect the
|
||||||
@@ -504,10 +504,12 @@ handle_slew(struct timeval *raw,
|
|||||||
occurs, just shift all the timeouts by the offset */
|
occurs, just shift all the timeouts by the offset */
|
||||||
|
|
||||||
for (ptr = timer_queue.next; ptr != &timer_queue; ptr = ptr->next) {
|
for (ptr = timer_queue.next; ptr != &timer_queue; ptr = ptr->next) {
|
||||||
UTI_AddDoubleToTimeval(&ptr->tv, -doffset, &T1);
|
UTI_AddDoubleToTimeval(&ptr->tv, -doffset, &ptr->tv);
|
||||||
ptr->tv = T1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (i = 0; i < SCH_NumberOfClasses; i++) {
|
||||||
|
UTI_AddDoubleToTimeval(&last_class_dispatch[i], -doffset, &last_class_dispatch[i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user