From d7c79acddfdc28c333eb5029f1790477f34601cd Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Thu, 22 Aug 2013 16:45:34 +0400 Subject: shaper: fixed reading 'rate-multiplier' --- accel-pppd/shaper/shaper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3