提交 d3d02d2e 编写于 作者: D Dmitry Kozlov

shaper: apply rate multiplier to integer values

上级 a1bd18b8
......@@ -236,7 +236,7 @@ static void parse_attr(struct rad_attr_t *attr, int dir, int *speed, int *burst,
if (attr->attr->type == ATTR_TYPE_STRING)
parse_string(attr->val.string, dir, speed, burst, tr_id);
else if (attr->attr->type == ATTR_TYPE_INTEGER)
*speed = attr->val.integer;
*speed = conf_multiplier * attr->val.integer;
}
static void check_radius_attrs(struct shaper_pd_t *pd, struct rad_packet_t *pack)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册