> In article
> <[EMAIL PROTECTED]>,
> Ryan Burke <[EMAIL PROTECTED]> wrote:
>>
>> I just was looking over the app_waitutil.c and am confused you add 500
>> to
>> tv.tv_usec on the line "msec = (future - tv.tv_sec) * 1000 -
>> ((tv.tv_usec
>> + 500) / 1000);"?
>
> It's just doing a standard "round to nearest" integer division, by adding
> half the divisor to the dividend before dividing. Without that, you just
> get "round down" instead.
>
> Cheers
> Tony
> --
> Tony Mountifield
> Work: [EMAIL PROTECTED] - http://www.softins.co.uk
> Play: [EMAIL PROTECTED] - http://tony.mountifield.org


I see, sorry it was a brain fart...

Thanks!

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to