Fix separation of timeouts scheduled for exactly the same time
This commit is contained in:
parent
6e96b4ba33
commit
4373918a2f
1 changed files with 1 additions and 2 deletions
3
sched.c
3
sched.c
|
@ -346,8 +346,7 @@ SCH_AddTimeoutInClass(double min_delay, double separation,
|
|||
if (new_min_delay - diff < separation) {
|
||||
new_min_delay = diff + separation;
|
||||
}
|
||||
}
|
||||
if (new_min_delay < diff) {
|
||||
} else {
|
||||
if (diff - new_min_delay < separation) {
|
||||
new_min_delay = diff + separation;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue