Commit d0d0e26c authored by osdl.org!shemminger's avatar osdl.org!shemminger

Use get_hz to pick up system HZ value at runtime.

(Logical change 1.19)
parent 491be30c
...@@ -187,8 +187,8 @@ static int htb_parse_class_opt(struct qdisc_util *qu, int argc, char **argv, str ...@@ -187,8 +187,8 @@ static int htb_parse_class_opt(struct qdisc_util *qu, int argc, char **argv, str
/* compute minimal allowed burst from rate; mtu is added here to make /* compute minimal allowed burst from rate; mtu is added here to make
sute that buffer is larger than mtu and to have some safeguard space */ sute that buffer is larger than mtu and to have some safeguard space */
if (!buffer) buffer = opt.rate.rate / HZ + mtu; if (!buffer) buffer = opt.rate.rate / get_hz() + mtu;
if (!cbuffer) cbuffer = opt.ceil.rate / HZ + mtu; if (!cbuffer) cbuffer = opt.ceil.rate / get_hz() + mtu;
if ((cell_log = tc_calc_rtable(opt.rate.rate, rtab, cell_log, mtu, 0)) < 0) { if ((cell_log = tc_calc_rtable(opt.rate.rate, rtab, cell_log, mtu, 0)) < 0) {
fprintf(stderr, "htb: failed to calculate rate table.\n"); fprintf(stderr, "htb: failed to calculate rate table.\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment