From 9d6ee6ee9dc3090ab694d47ec8347f255885c429 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Mon, 16 Jun 2014 20:39:43 +0400 Subject: shaper: apply rate multiplier to integer values --- accel-pppd/shaper/shaper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accel-pppd/shaper') diff --git a/accel-pppd/shaper/shaper.c b/accel-pppd/shaper/shaper.c index 9594caf0..c27ec72e 100644 --- a/accel-pppd/shaper/shaper.c +++ b/accel-pppd/shaper/shaper.c @@ -237,7 +237,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) -- cgit v1.2.3