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-05-14 14:35:29 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cf712b06bbfb481f94858397427b4f190df9c889
cf712b06
1 parent
cbbf53f8
fix bug #67: fix pithy print bug, stage must has a age. 0.9.98
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
5 行增加
和
5 行删除
trunk/src/app/srs_app_pithy_print.cpp
trunk/src/app/srs_app_pithy_print.hpp
trunk/src/app/srs_app_pithy_print.cpp
查看文件 @
cf712b0
...
...
@@ -38,7 +38,7 @@ SrsStageInfo::SrsStageInfo(int _stage_id)
{
stage_id
=
_stage_id
;
nb_clients
=
0
;
_
age
=
printed_age
=
0
;
age
=
printed_age
=
0
;
update_print_time
();
...
...
@@ -90,16 +90,16 @@ void SrsStageInfo::update_print_time()
void
SrsStageInfo
::
elapse
(
int64_t
diff
)
{
_
age
+=
diff
;
age
+=
diff
;
}
bool
SrsStageInfo
::
can_print
()
{
int64_t
can_print_age
=
nb_clients
*
pithy_print_time_ms
;
bool
can_print
=
_
age
>=
can_print_age
;
bool
can_print
=
age
>=
can_print_age
;
if
(
can_print
)
{
_
age
=
0
;
age
=
0
;
}
return
can_print
;
...
...
trunk/src/app/srs_app_pithy_print.hpp
查看文件 @
cf712b0
...
...
@@ -54,7 +54,7 @@ public:
int
pithy_print_time_ms
;
int
nb_clients
;
public
:
int64_t
_
age
;
int64_t
age
;
int64_t
printed_age
;
public
:
SrsStageInfo
(
int
_stage_id
);
...
...
请
注册
或
登录
后发表评论