diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2013-08-22 16:45:34 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-08-22 16:45:34 +0400 |
commit | d7c79acddfdc28c333eb5029f1790477f34601cd (patch) | |
tree | 9cab9f9736b85b92d033e4fabd5e48a57db66cf1 /accel-pppd/shaper/shaper.c | |
parent | c4bbf0d089534916fff4cfa2ac5f45e0aba9e8a1 (diff) | |
download | accel-ppp-d7c79acddfdc28c333eb5029f1790477f34601cd.tar.gz accel-ppp-d7c79acddfdc28c333eb5029f1790477f34601cd.zip |
shaper: fixed reading 'rate-multiplier'
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 8b5e0a12..09f03f39 100644 --- a/accel-pppd/shaper/shaper.c +++ b/accel-pppd/shaper/shaper.c @@ -900,7 +900,7 @@ static void load_config(void) conf_verbose = atoi(opt) > 0; opt = conf_get_opt("shaper", "rate-multiplier"); - if (opt && atoi(opt) >= 0) + if (opt && atof(opt) > 0) conf_multiplier = atof(opt); else conf_multiplier = 1; |