mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine the hls_on_notify, calc the spent time in ms.
This commit is contained in:
parent
310157ab77
commit
d8988da0ea
1 changed files with 2 additions and 2 deletions
|
@ -134,7 +134,7 @@ int64_t srs_update_system_time_ms()
|
|||
if (_srs_system_time_us_cache <= 0) {
|
||||
_srs_system_time_us_cache = now_us;
|
||||
_srs_system_time_startup_time = now_us;
|
||||
return _srs_system_time_us_cache;
|
||||
return _srs_system_time_us_cache / 1000;
|
||||
}
|
||||
|
||||
// use relative time.
|
||||
|
@ -151,7 +151,7 @@ int64_t srs_update_system_time_ms()
|
|||
srs_info("system time updated, startup=%"PRId64"us, now=%"PRId64"us",
|
||||
_srs_system_time_startup_time, _srs_system_time_us_cache);
|
||||
|
||||
return _srs_system_time_us_cache;
|
||||
return _srs_system_time_us_cache / 1000;
|
||||
}
|
||||
|
||||
string srs_dns_resolve(string host)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue