summaryrefslogtreecommitdiff
path: root/accel-pppd/shaper/shaper.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-06-16 20:39:43 +0400
committerDmitry Kozlov <xeb@mail.ru>2014-06-16 20:39:43 +0400
commit9d6ee6ee9dc3090ab694d47ec8347f255885c429 (patch)
treeae5793e6edaac1f07ff1b627ce7561243ede4d00 /accel-pppd/shaper/shaper.c
parent92aa52c116cdd1a5df42c1437fe9d68b3a1c122b (diff)
downloadaccel-ppp-9d6ee6ee9dc3090ab694d47ec8347f255885c429.tar.gz
accel-ppp-9d6ee6ee9dc3090ab694d47ec8347f255885c429.zip
shaper: apply rate multiplier to integer values
Diffstat (limited to 'accel-pppd/shaper/shaper.c')
-rw-r--r--accel-pppd/shaper/shaper.c2
1 files changed, 1 insertions, 1 deletions
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)