1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Refine srs_get_system_startup_time in time unit

This commit is contained in:
winlin 2019-04-10 09:11:54 +08:00
parent 6c12aa0eca
commit 170cca1f58
4 changed files with 5 additions and 5 deletions

View file

@ -312,7 +312,7 @@ int SrsBandwidthClient::publish_checking(int duration_ms, int play_kbps)
int data_count = 1;
int64_t starttime = srsu2ms(srs_update_system_time());
while ((srsu2ms(srs_get_system_time()) - starttime) < duration_ms) {
while (int64_t(srsu2ms(srs_get_system_time()) - starttime) < duration_ms) {
// TODO: FIXME: use shared ptr message.
SrsBandwidthPacket* pkt = SrsBandwidthPacket::create_publishing();