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
2015-12-15 12:46:47 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b486f6fe6bb2924cc7e0a13a3515d2e4e10be46d
b486f6fe
1 parent
9b3fdc74
refine /api/v1/summaries, with code and server id.
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
6 行增加
和
1 行删除
trunk/src/app/srs_app_http_api.cpp
trunk/src/app/srs_app_statistic.cpp
trunk/src/app/srs_app_http_api.cpp
查看文件 @
b486f6f
...
...
@@ -267,9 +267,14 @@ SrsGoApiSummaries::~SrsGoApiSummaries()
int
SrsGoApiSummaries
::
serve_http
(
ISrsHttpResponseWriter
*
w
,
ISrsHttpMessage
*
r
)
{
SrsStatistic
*
stat
=
SrsStatistic
::
instance
();
SrsJsonObject
*
obj
=
SrsJsonAny
::
object
();
SrsAutoFree
(
SrsJsonObject
,
obj
);
obj
->
set
(
"code"
,
SrsJsonAny
::
integer
(
ERROR_SUCCESS
));
obj
->
set
(
"server"
,
SrsJsonAny
::
integer
(
stat
->
server_id
()));
srs_api_dump_summaries
(
obj
);
return
srs_api_response
(
w
,
r
,
obj
->
dumps
());
...
...
trunk/src/app/srs_app_statistic.cpp
查看文件 @
b486f6f
...
...
@@ -35,7 +35,7 @@ using namespace std;
#include <srs_kernel_utility.hpp>
#include <srs_protocol_amf0.hpp>
int64_t
srs_gvid
=
getpid
();
int64_t
srs_gvid
=
getpid
()
*
3
;
int64_t
srs_generate_id
()
{
...
...
请
注册
或
登录
后发表评论