Skip to content

Commit

Permalink
Merge pull request #873 from guipilon/master
Browse files Browse the repository at this point in the history
ratelimit module not working properly when FEEDBACK algorithm is used
  • Loading branch information
miconda committed Dec 4, 2016
2 parents cc41e2c + 22b040c commit 2b59506
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions modules/ratelimit/ratelimit.c
Expand Up @@ -359,9 +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 = vload/ncpu;
vload = 1.0 - vload;
if(vload<0.0) vload = 0.0;
else if (vload>1.0) vload = 1.0;
Expand Down

0 comments on commit 2b59506

Please sign in to comment.