mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #155, add todo for osx. 2.0.146
This commit is contained in:
parent
6776065b04
commit
33cca3e027
4 changed files with 51 additions and 8 deletions
|
@ -836,7 +836,6 @@ int SrsServer::do_cycle()
|
|||
srs_info("update resource info, rss.");
|
||||
srs_update_system_rusage();
|
||||
}
|
||||
#ifndef SRS_OSX
|
||||
if ((i % SRS_SYS_CPU_STAT_RESOLUTION_TIMES) == 0) {
|
||||
srs_info("update cpu info, cpu usage.");
|
||||
srs_update_proc_stat();
|
||||
|
@ -849,12 +848,10 @@ int SrsServer::do_cycle()
|
|||
srs_info("update memory info, usage/free.");
|
||||
srs_update_meminfo();
|
||||
}
|
||||
#endif
|
||||
if ((i % SRS_SYS_PLATFORM_INFO_RESOLUTION_TIMES) == 0) {
|
||||
srs_info("update platform info, uptime/load.");
|
||||
srs_update_platform_info();
|
||||
}
|
||||
#ifndef SRS_OSX
|
||||
if ((i % SRS_SYS_NETWORK_DEVICE_RESOLUTION_TIMES) == 0) {
|
||||
srs_info("update network devices info.");
|
||||
srs_update_network_devices();
|
||||
|
@ -871,7 +868,6 @@ int SrsServer::do_cycle()
|
|||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
srs_info("server main thread loop");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue