Module: kamailio
Branch: master
Commit: bb768faae3367c1209e735de71ab9fdcd5d068d5
URL:
https://github.com/kamailio/kamailio/commit/bb768faae3367c1209e735de71ab9fd…
Author: Guilherme C Pilon <gpilon(a)daitangroup.com>
Committer: Guilherme C Pilon <gpilon(a)daitangroup.com>
Date: 2016-11-30T13:33:44-02:00
ratelimit module not working properly when FEEDBACK algorithm is used
---
Modified: modules/ratelimit/ratelimit.c
---
Diff:
https://github.com/kamailio/kamailio/commit/bb768faae3367c1209e735de71ab9fd…
Patch:
https://github.com/kamailio/kamailio/commit/bb768faae3367c1209e735de71ab9fd…
---
diff --git a/modules/ratelimit/ratelimit.c b/modules/ratelimit/ratelimit.c
index 69fcd74..72619fa 100644
--- a/modules/ratelimit/ratelimit.c
+++ b/modules/ratelimit/ratelimit.c
@@ -361,7 +361,6 @@ static int get_cpuload(double * load)
/* divide by numbers of cpu */
ncpu = get_num_cpus();
- vload = vload/ncpu;
vload = 1.0 - vload;
if(vload<0.0) vload = 0.0;
else if (vload>1.0) vload = 1.0;