mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 12:15:07 -05:00
Fix separation of timeouts scheduled for exactly the same time
This commit is contained in:
3
sched.c
3
sched.c
@@ -346,8 +346,7 @@ SCH_AddTimeoutInClass(double min_delay, double separation,
|
|||||||
if (new_min_delay - diff < separation) {
|
if (new_min_delay - diff < separation) {
|
||||||
new_min_delay = diff + separation;
|
new_min_delay = diff + separation;
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
if (new_min_delay < diff) {
|
|
||||||
if (diff - new_min_delay < separation) {
|
if (diff - new_min_delay < separation) {
|
||||||
new_min_delay = diff + separation;
|
new_min_delay = diff + separation;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user