fixed timestamp formula

This commit is contained in:
Roman Arutyunyan 2012-03-20 18:06:50 +04:00
parent 140a322b99
commit f2746b6ee1

View file

@ -265,7 +265,7 @@ ngx_rtmp_get_timestamp()
tod = ngx_timeofday();
/* FIXME: divisor */
return (uint32_t)(tod->sec * 1000 + tod->msec / 1000) % 0x00ffffff;
return (uint32_t)(tod->sec * 1000 + tod->msec) % 0x00ffffff;
}