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

refine code, add comments for ossrs.net monitor.

This commit is contained in:
winlin 2014-08-04 10:50:28 +08:00
parent b703bb0fb5
commit 33bc8755ab
2 changed files with 6 additions and 1 deletions

View file

@ -682,7 +682,7 @@ int SrsServer::do_cycle()
// the deamon thread, update the time cache
while (true) {
// the interval in config.
int heartbeat_max_resolution = (int)(_srs_config->get_heartbeat_interval() / 100);
int heartbeat_max_resolution = (int)(_srs_config->get_heartbeat_interval() / SRS_SYS_CYCLE_INTERVAL);
// dynamic fetch the max.
int __max = max;