mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #109: fix the system jump time, adjust system startup time. 0.9.135
This commit is contained in:
parent
7de95c12e0
commit
b357504b1d
6 changed files with 48 additions and 11 deletions
|
@ -61,6 +61,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
||||
// update time interval:
|
||||
// SRS_SYS_CYCLE_INTERVAL * SRS_SYS_TIME_RESOLUTION_MS_TIMES
|
||||
// @see SYS_TIME_RESOLUTION_US
|
||||
#define SRS_SYS_TIME_RESOLUTION_MS_TIMES 3
|
||||
|
||||
// update rusage interval:
|
||||
|
@ -399,6 +400,9 @@ int SrsServer::initialize()
|
|||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
// ensure the time is ok.
|
||||
srs_update_system_time_ms();
|
||||
|
||||
// for the main objects(server, config, log, context),
|
||||
// never subscribe handler in constructor,
|
||||
// instead, subscribe handler in initialize method.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue