mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Support interval for error pithy print
This commit is contained in:
parent
2e56aeba96
commit
9febdaeb48
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ SrsStageInfo::~SrsStageInfo()
|
||||||
|
|
||||||
void SrsStageInfo::update_print_time()
|
void SrsStageInfo::update_print_time()
|
||||||
{
|
{
|
||||||
interval = (srs_utime_t)(interval_ratio * _srs_config->get_pithy_print());
|
interval = _srs_config->get_pithy_print();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SrsStageInfo::elapse(srs_utime_t diff)
|
void SrsStageInfo::elapse(srs_utime_t diff)
|
||||||
|
@ -61,7 +61,7 @@ void SrsStageInfo::elapse(srs_utime_t diff)
|
||||||
|
|
||||||
bool SrsStageInfo::can_print()
|
bool SrsStageInfo::can_print()
|
||||||
{
|
{
|
||||||
srs_utime_t can_print_age = nb_clients * interval;
|
srs_utime_t can_print_age = nb_clients * (srs_utime_t)(interval_ratio * interval);
|
||||||
|
|
||||||
bool can_print = age >= can_print_age;
|
bool can_print = age >= can_print_age;
|
||||||
if (can_print) {
|
if (can_print) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue