summaryrefslogtreecommitdiff
path: root/accel-pppd/shaper/shaper.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2013-08-22 16:45:34 +0400
committerKozlov Dmitry <xeb@mail.ru>2013-08-22 16:45:34 +0400
commitd7c79acddfdc28c333eb5029f1790477f34601cd (patch)
tree9cab9f9736b85b92d033e4fabd5e48a57db66cf1 /accel-pppd/shaper/shaper.c
parentc4bbf0d089534916fff4cfa2ac5f45e0aba9e8a1 (diff)
downloadaccel-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.c2
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;