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-03-21 15:38:22 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2f2aaf5ee4037e6900b75062d96f1821bb3bfe63
2f2aaf5e
1 parent
33cca3e0
for #155, refine code, donot check network devices for osx.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
2 行增加
和
4 行删除
trunk/src/app/srs_app_utility.cpp
trunk/src/app/srs_app_utility.cpp
查看文件 @
2f2aaf5
...
...
@@ -147,7 +147,7 @@ SrsProcSelfStat::SrsProcSelfStat()
pid
=
0
;
memset
(
comm
,
0
,
sizeof
(
comm
));
state
=
0
;
state
=
'0'
;
ppid
=
0
;
pgrp
=
0
;
session
=
0
;
...
...
@@ -1146,7 +1146,6 @@ void srs_api_dump_summaries(std::stringstream& ss)
int64_t
now
=
srs_get_system_time_ms
();
double
srs_uptime
=
(
now
-
p
->
srs_startup_time
)
/
100
/
10.0
;
bool
n_ok
=
false
;
int64_t
n_sample_time
=
0
;
int64_t
nr_bytes
=
0
;
int64_t
ns_bytes
=
0
;
...
...
@@ -1160,7 +1159,6 @@ void srs_api_dump_summaries(std::stringstream& ss)
continue
;
}
n_ok
=
true
;
nr_bytes
+=
o
.
rbytes
;
ns_bytes
+=
o
.
sbytes
;
n_sample_time
=
o
.
sample_time
;
...
...
@@ -1168,7 +1166,7 @@ void srs_api_dump_summaries(std::stringstream& ss)
// all data is ok?
bool
ok
=
(
r
->
ok
&&
u
->
ok
&&
s
->
ok
&&
c
->
ok
&&
d
->
ok
&&
m
->
ok
&&
p
->
ok
&&
n
_ok
&&
n
rs
->
ok
);
&&
d
->
ok
&&
m
->
ok
&&
p
->
ok
&&
nrs
->
ok
);
ss
<<
SRS_JOBJECT_START
<<
SRS_JFIELD_ERROR
(
ERROR_SUCCESS
)
<<
SRS_JFIELD_CONT
...
...
请
注册
或
登录
后发表评论