mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine options, add --with-stat. 0.9.199
This commit is contained in:
parent
3111870316
commit
6103b1c3ce
4 changed files with 39 additions and 19 deletions
|
@ -672,7 +672,7 @@ int SrsServer::do_cycle()
|
|||
// find the max loop
|
||||
int max = srs_max(0, SRS_SYS_TIME_RESOLUTION_MS_TIMES);
|
||||
|
||||
#ifndef SRS_AUTO_OSX
|
||||
#ifdef SRS_AUTO_STAT
|
||||
max = srs_max(max, SRS_SYS_RUSAGE_RESOLUTION_TIMES);
|
||||
max = srs_max(max, SRS_SYS_CPU_STAT_RESOLUTION_TIMES);
|
||||
max = srs_max(max, SRS_SYS_DISK_STAT_RESOLUTION_TIMES);
|
||||
|
@ -723,7 +723,7 @@ int SrsServer::do_cycle()
|
|||
srs_update_system_time_ms();
|
||||
}
|
||||
|
||||
#ifndef SRS_AUTO_OSX
|
||||
#ifdef SRS_AUTO_STAT
|
||||
if ((i % SRS_SYS_RUSAGE_RESOLUTION_TIMES) == 0) {
|
||||
srs_info("update resource info, rss.");
|
||||
srs_update_system_rusage();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue