diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2013-10-16 10:15:25 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-10-16 10:15:30 +0400 |
commit | 2598be10d661e2b38831b3489122003111fa7752 (patch) | |
tree | 19ba17462cc695421215f387d61556db1b5e51c1 /accel-pppd | |
parent | cdfcd0c5d6f040ea7ce6df13e4cbae3a7ca2c1e0 (diff) | |
download | accel-ppp-2598be10d661e2b38831b3489122003111fa7752.tar.gz accel-ppp-2598be10d661e2b38831b3489122003111fa7752.zip |
shaper: check for range overlaps before adjusting range times
Fixes detection of range everlaps (time range end time is equal to start time of other range),
which prevents starting range end timer.
Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/shaper/shaper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pppd/shaper/shaper.c b/accel-pppd/shaper/shaper.c index 229ab415..369a375b 100644 --- a/accel-pppd/shaper/shaper.c +++ b/accel-pppd/shaper/shaper.c @@ -765,7 +765,9 @@ static void load_time_ranges(void) break; } } + } + list_for_each_entry(r, &time_range_list, entry) { if (r->begin.expire_tv.tv_sec > r->end.expire_tv.tv_sec) { if (ts >= r->begin.expire_tv.tv_sec || ts <= r->end.expire_tv.tv_sec) time_range_begin_timer(&r->begin); |