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

revert the copyrigh, only when commit feature, add the copyright field

This commit is contained in:
winlin 2013-12-22 12:40:46 +08:00
parent dfb3e117f8
commit bad6f0d3a8
5 changed files with 29 additions and 4 deletions

2
trunk/src/core/srs_core.cpp Normal file → Executable file
View file

@ -43,7 +43,7 @@ void srs_update_system_time_ms()
gettimeofday(&now, NULL);
// we must convert the tv_sec/tv_usec to int64_t.
_srs_system_time_us_cache = now.tv_sec * 1000 * 1000 + now.tv_usec;
_srs_system_time_us_cache = ((int64_t)now.tv_sec) * 1000 * 1000 + (int64_t)now.tv_usec;
_srs_system_time_us_cache = srs_max(0, _srs_system_time_us_cache);
}