diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-06-16 20:39:43 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-07-11 15:01:51 +0400 |
commit | d3d02d2e1b415dd0b4a3832da3b852cacc9284a3 (patch) | |
tree | 4426709bf9cafee6038fa47c1f51bad69a198fc3 | |
parent | a1bd18b8293aec56628ec8cf56684de5dbd6228f (diff) | |
download | accel-ppp-d3d02d2e1b415dd0b4a3832da3b852cacc9284a3.tar.gz accel-ppp-d3d02d2e1b415dd0b4a3832da3b852cacc9284a3.zip |
shaper: apply rate multiplier to integer values
-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 d5da0a6d..f3a83475 100644 --- a/accel-pppd/shaper/shaper.c +++ b/accel-pppd/shaper/shaper.c @@ -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) |