diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2013-10-16 10:15:25 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-10-25 10:15:21 +0400 |
commit | b96a7c889dfaa1ee7491394179f800372374db8d (patch) | |
tree | d01b9ccc06dcd88ff2237fd6db50da08dd1fd6ef | |
parent | 8ec3d780d59982745a29f7e4d494fda0e6cfe7dd (diff) | |
download | accel-ppp-b96a7c889dfaa1ee7491394179f800372374db8d.tar.gz accel-ppp-b96a7c889dfaa1ee7491394179f800372374db8d.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>
-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 15e7d291..6b788b55 100644 --- a/accel-pppd/shaper/shaper.c +++ b/accel-pppd/shaper/shaper.c @@ -775,7 +775,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); |