From ad119336820cb6726a71e61611b616dffa30c1dc Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Wed, 7 Mar 2012 20:23:30 +0400 Subject: shaper: apply cburst value only if it not zero else set it same as burst --- accel-pppd/shaper/limiter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accel-pppd') 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); -- cgit v1.2.3