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-04-29 09:57:59 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fd0efecbc844d528e9e5f92c2b3bbddec6370ff3
fd0efecb
1 parent
cb2959ae
refine ingester pithy print
显示空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
8 行增加
和
5 行删除
trunk/src/app/srs_app_ingest.cpp
trunk/src/kernel/srs_kernel_log.hpp
trunk/src/rtmp/srs_protocol_io.hpp
trunk/src/app/srs_app_ingest.cpp
查看文件 @
fd0efec
...
...
@@ -345,12 +345,11 @@ void SrsIngester::ingester()
}
// reportable
if
(
!
pithy_print
->
can_print
())
{
return
;
}
if
(
pithy_print
->
can_print
())
{
// TODO: FIXME: show more info.
srs_trace
(
"-> time=%"
PRId64
", ingesters=%d"
,
pithy_print
->
age
(),
(
int
)
ingesters
.
size
());
srs_trace
(
"-> "
SRS_LOG_ID_INGESTER
" time=%"
PRId64
", ingesters=%d"
,
pithy_print
->
age
(),
(
int
)
ingesters
.
size
());
}
}
int
SrsIngester
::
on_reload_vhost_added
(
string
vhost
)
...
...
trunk/src/kernel/srs_kernel_log.hpp
查看文件 @
fd0efec
...
...
@@ -156,5 +156,7 @@ extern ISrsThreadContext* _srs_context;
#define SRS_LOG_ID_CLIENT_PUBLISH "CPB"
// web/flash publish to edge/origin
#define SRS_LOG_ID_WEB_PUBLISH "WPB"
// ingester for edge(play)/origin
#define SRS_LOG_ID_INGESTER "IGS"
#endif
...
...
trunk/src/rtmp/srs_protocol_io.hpp
查看文件 @
fd0efec
...
...
@@ -47,6 +47,7 @@ public:
virtual
void
set_recv_timeout
(
int64_t
timeout_us
)
=
0
;
virtual
int64_t
get_recv_timeout
()
=
0
;
virtual
int64_t
get_recv_bytes
()
=
0
;
// TODO: FIXME: remove this interface.
virtual
int
get_recv_kbps
()
=
0
;
};
...
...
@@ -63,6 +64,7 @@ public:
virtual
void
set_send_timeout
(
int64_t
timeout_us
)
=
0
;
virtual
int64_t
get_send_timeout
()
=
0
;
virtual
int64_t
get_send_bytes
()
=
0
;
// TODO: FIXME: remove this interface.
virtual
int
get_send_kbps
()
=
0
;
virtual
int
writev
(
const
iovec
*
iov
,
int
iov_size
,
ssize_t
*
nwrite
)
=
0
;
};
...
...
请
注册
或
登录
后发表评论