From e7cce8891284cf6593d0568015aa8e36135d819c Mon Sep 17 00:00:00 2001 From: winlin Date: Fri, 7 May 2021 19:01:25 +0800 Subject: [PATCH] RTC: Refine timer stat --- trunk/src/app/srs_app_hourglass.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trunk/src/app/srs_app_hourglass.cpp b/trunk/src/app/srs_app_hourglass.cpp index 7f0d127f4..9f5467dcd 100644 --- a/trunk/src/app/srs_app_hourglass.cpp +++ b/trunk/src/app/srs_app_hourglass.cpp @@ -194,8 +194,11 @@ srs_error_t SrsFastTimer::cycle() return srs_error_wrap(err, "quit"); } + ++_srs_pps_timer->sugar; + for (int i = 0; i < (int)handlers_.size(); i++) { ISrsFastTimer* timer = handlers_.at(i); + if ((err = timer->on_timer(interval_)) != srs_success) { srs_freep(err); // Ignore any error for shared timer. }