diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-03-07 20:23:30 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-03-07 20:23:30 +0400 |
commit | ad119336820cb6726a71e61611b616dffa30c1dc (patch) | |
tree | f3899cf9a70a2ecabd2e5a55d4b9ef203bcdf781 /accel-pppd | |
parent | fc8e1ddf2df2e71534f1f2b77dbe5ba6ebf4b745 (diff) | |
download | accel-ppp-ad119336820cb6726a71e61611b616dffa30c1dc.tar.gz accel-ppp-ad119336820cb6726a71e61611b616dffa30c1dc.zip |
shaper: apply cburst value only if it not zero else set it same as burst
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/shaper/limiter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/shaper/limiter.c b/accel-pppd/shaper/limiter.c index 6becb395..f368b331 100644 --- a/accel-pppd/shaper/limiter.c +++ b/accel-pppd/shaper/limiter.c @@ -110,7 +110,7 @@ static int qdisc_htb_class(struct qdisc_opt *qopt, struct nlmsghdr *n) log_ppp_error("shaper: failed to calculate ceil rate table.\n"); return -1; } - opt.cbuffer = tc_calc_xmittime(opt.ceil.rate, conf_cburst); + opt.cbuffer = tc_calc_xmittime(opt.ceil.rate, conf_cburst ? conf_cburst : qopt->buffer); tail = NLMSG_TAIL(n); addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); |