Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-08-04 10:50:28 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
33bc8755ab6e4b90010ed30974e64584f3340d14
33bc8755
1 parent
b703bb0f
refine code, add comments for ossrs.net monitor.
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
6 行增加
和
1 行删除
trunk/conf/http.heartbeat.conf
trunk/src/app/srs_app_server.cpp
trunk/conf/http.heartbeat.conf
查看文件 @
33bc875
...
...
@@ -6,8 +6,13 @@ max_connections 1000;
heartbeat
{
enabled
on
;
interval
9
.
3
;
# for python api-server
url
http
://
127
.
0
.
0
.
1
:
8085
/
api
/
v1
/
servers
;
device_id
"my-srs-device"
;
# for ossrs.net monitor, device_id is the key genereated by bsm.
#url http://www.ossrs.net:1977/api/v1/robots/servers;
#device_id "35c9b402c12a7246868752e2878f7e0e";
# with detail summaries
summaries
on
;
}
stats
{
...
...
trunk/src/app/srs_app_server.cpp
查看文件 @
33bc875
...
...
@@ -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
;
...
...
请
注册
或
登录
后发表评论