diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-06-16 20:39:43 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-06-16 20:39:43 +0400 |
commit | 9d6ee6ee9dc3090ab694d47ec8347f255885c429 (patch) | |
tree | ae5793e6edaac1f07ff1b627ce7561243ede4d00 /accel-pppd/shaper/shaper.c | |
parent | 92aa52c116cdd1a5df42c1437fe9d68b3a1c122b (diff) | |
download | accel-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.c | 2 |
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) |