diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-04-18 10:00:08 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-04-18 10:06:11 +0400 |
commit | 56ec941251ad406bb146d4969f8c711b384c3b40 (patch) | |
tree | 26dc2e00144c5e7dea95d2dd39370bc3ff0dc227 | |
parent | 0d96cf0aaaa46c8515de49afcb0a776e2ce3302e (diff) | |
download | accel-ppp-56ec941251ad406bb146d4969f8c711b384c3b40.tar.gz accel-ppp-56ec941251ad406bb146d4969f8c711b384c3b40.zip |
shaper: fix time range start detection on startup/config reload
-rw-r--r-- | accel-pppd/shaper/shaper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/shaper/shaper.c b/accel-pppd/shaper/shaper.c index bcf705cd..0ea2e373 100644 --- a/accel-pppd/shaper/shaper.c +++ b/accel-pppd/shaper/shaper.c @@ -751,7 +751,7 @@ static void load_time_ranges(void) if (r) { list_add_tail(&r->entry, &time_range_list); 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 + 24*60*60) + if (ts >= r->begin.expire_tv.tv_sec || ts <= r->end.expire_tv.tv_sec) time_range_begin_timer(&r->begin); } else { if (ts >= r->begin.expire_tv.tv_sec && ts <= r->end.expire_tv.tv_sec) |