From 6508a082e9cb9cbc47bea4a083765578dca81aa3 Mon Sep 17 00:00:00 2001 From: winlin Date: Sat, 27 Aug 2022 18:54:02 +0800 Subject: [PATCH] Fix #3108: STAT: Update stat for SRT. v5.0.46 --- trunk/doc/CHANGELOG.md | 1 + trunk/src/app/srs_app_server.cpp | 2 +- trunk/src/app/srs_app_srt_server.cpp | 2 +- trunk/src/core/srs_core_version5.hpp | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/trunk/doc/CHANGELOG.md b/trunk/doc/CHANGELOG.md index 5c2a712a2..bb94c2f1d 100644 --- a/trunk/doc/CHANGELOG.md +++ b/trunk/doc/CHANGELOG.md @@ -7,6 +7,7 @@ The changelog for SRS. ## SRS 5.0 Changelog +* v5.0, 2022-08-27, Fix [#3108](https://github.com/ossrs/srs/issues/3108): STAT: Update stat for SRT. v5.0.46 * v5.0, 2022-08-26, Log: Stat the number of logs. v5.0.45 * v5.0, 2022-08-24, Log: Support write log to tencentcloud CLS. v5.0.44 * v5.0, 2022-08-22, Fix [#3114](https://github.com/ossrs/srs/issues/3114): Origin cluster config bug. v5.0.43 diff --git a/trunk/src/app/srs_app_server.cpp b/trunk/src/app/srs_app_server.cpp index e62ff49dc..4c6abda21 100644 --- a/trunk/src/app/srs_app_server.cpp +++ b/trunk/src/app/srs_app_server.cpp @@ -1291,7 +1291,7 @@ void SrsServer::resample_kbps() // collect delta from all clients. for (int i = 0; i < (int)conn_manager->size(); i++) { ISrsResource* c = conn_manager->at(i); - ISrsKbpsDelta* conn = dynamic_cast(conn_manager->at(i)); + ISrsKbpsDelta* conn = dynamic_cast(c); // add delta of connection to server kbps., // for next sample() of server kbps can get the stat. diff --git a/trunk/src/app/srs_app_srt_server.cpp b/trunk/src/app/srs_app_srt_server.cpp index d5af6e1e2..c869c83cf 100644 --- a/trunk/src/app/srs_app_srt_server.cpp +++ b/trunk/src/app/srs_app_srt_server.cpp @@ -294,7 +294,7 @@ void SrsSrtServer::resample_kbps() // collect delta from all clients. for (int i = 0; i < (int)conn_manager_->size(); i++) { ISrsResource* c = conn_manager_->at(i); - ISrsKbpsDelta* conn = dynamic_cast(conn_manager_->at(i)); + ISrsKbpsDelta* conn = dynamic_cast(c); // add delta of connection to server kbps., // for next sample() of server kbps can get the stat. diff --git a/trunk/src/core/srs_core_version5.hpp b/trunk/src/core/srs_core_version5.hpp index b5d1f362f..e6b307bea 100644 --- a/trunk/src/core/srs_core_version5.hpp +++ b/trunk/src/core/srs_core_version5.hpp @@ -9,6 +9,6 @@ #define VERSION_MAJOR 5 #define VERSION_MINOR 0 -#define VERSION_REVISION 45 +#define VERSION_REVISION 46 #endif