mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-20 01:51:07 +02:00
fixed timestamp formula
This commit is contained in:
parent
140a322b99
commit
f2746b6ee1
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue