[zeromq-dev] [Openpgm-dev] Re: Bug in rate control?

Steven McCoy steven.mccoy at miru.hk
Sun Dec 27 15:33:19 CET 2009


2009/12/27 Martin Sustrik <sustrik at 250bpm.com>

> Calculating refill increment based on the time of last _successful_ call
> to pgm_rate_check seems to solve the issue:
>
>
Ah ok, although double precision math is already being used it's at
fractions of a second, it would be more accurate to calculate at the
millisecond first.

I re-arranged the code to use the new_rate_limit variable earlier rather
than store and swap.

-- 
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20091227/3560b74c/attachment.htm>


More information about the zeromq-dev mailing list