1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Fix #3108: STAT: Update stat for SRT. v5.0.46

This commit is contained in:
winlin 2022-08-27 18:54:02 +08:00
parent 4e3ea99ccd
commit 6508a082e9
4 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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<ISrsKbpsDelta*>(conn_manager->at(i));
ISrsKbpsDelta* conn = dynamic_cast<ISrsKbpsDelta*>(c);
// add delta of connection to server kbps.,
// for next sample() of server kbps can get the stat.

View file

@ -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<ISrsKbpsDelta*>(conn_manager_->at(i));
ISrsKbpsDelta* conn = dynamic_cast<ISrsKbpsDelta*>(c);
// add delta of connection to server kbps.,
// for next sample() of server kbps can get the stat.

View file

@ -9,6 +9,6 @@
#define VERSION_MAJOR 5
#define VERSION_MINOR 0
#define VERSION_REVISION 45
#define VERSION_REVISION 46
#endif