Module: kamailio
Branch: master
Commit: 22b040c944228cfc7795f4481465dd230bff6f99
URL:
https://github.com/kamailio/kamailio/commit/22b040c944228cfc7795f4481465dd2…
Author: Guilherme C Pilon <gpilon(a)daitangroup.com>
Committer: Guilherme C Pilon <gpilon(a)daitangroup.com>
Date: 2016-11-30T13:41:12-02:00
ratelimit module not working properly when FEEDBACK algorithm is used - deleting unused
lines
---
Modified: modules/ratelimit/ratelimit.c
---
Diff:
https://github.com/kamailio/kamailio/commit/22b040c944228cfc7795f4481465dd2…
Patch:
https://github.com/kamailio/kamailio/commit/22b040c944228cfc7795f4481465dd2…
---
diff --git a/modules/ratelimit/ratelimit.c b/modules/ratelimit/ratelimit.c
index 72619fa..b8a053e 100644
--- a/modules/ratelimit/ratelimit.c
+++ b/modules/ratelimit/ratelimit.c
@@ -359,8 +359,6 @@ static int get_cpuload(double * load)
vload = ((double)d_idle) / (double)d_total;
- /* divide by numbers of cpu */
- ncpu = get_num_cpus();
vload = 1.0 - vload;
if(vload<0.0) vload = 0.0;
else if (vload>1.0) vload = 1.0;