[OpenSIPS-Devel] [opensips] Slot Based Taildrop algorithm for ratelimit (#728)
Răzvan Crainea
notifications at github.com
Mon Jan 4 16:49:23 CET 2016
> + /* Window ELement*/
> + #define WEL(__el__) pipe->rwin.__el__
> + #define U2MILI(__usec__) (__usec__/1000)
> + #define S2MILI(__sec__) (__sec__ *1000)
> + int i;
> + int count;
> + int first_good_index;
> + int rl_win_ms = rl_window_size * 1000;
> +
> +
> + unsigned long long now_total, start_total;
> +
> + struct timeval tv;
> +
> + /* first get values from our beloved replicated friends */
> + count = rl_get_all_hist_counters(pipe);
You should use the ```counter``` field of the pipe.
---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/728/files#r48743615
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160104/0920f720/attachment.htm>
More information about the Devel
mailing list