mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Refine timer stat
This commit is contained in:
parent
25f17c32e9
commit
e7cce88912
1 changed files with 3 additions and 0 deletions
|
@ -194,8 +194,11 @@ srs_error_t SrsFastTimer::cycle()
|
||||||
return srs_error_wrap(err, "quit");
|
return srs_error_wrap(err, "quit");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
++_srs_pps_timer->sugar;
|
||||||
|
|
||||||
for (int i = 0; i < (int)handlers_.size(); i++) {
|
for (int i = 0; i < (int)handlers_.size(); i++) {
|
||||||
ISrsFastTimer* timer = handlers_.at(i);
|
ISrsFastTimer* timer = handlers_.at(i);
|
||||||
|
|
||||||
if ((err = timer->on_timer(interval_)) != srs_success) {
|
if ((err = timer->on_timer(interval_)) != srs_success) {
|
||||||
srs_freep(err); // Ignore any error for shared timer.
|
srs_freep(err); // Ignore any error for shared timer.
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue