Skip to content

Commit

Permalink
Fix #3108: STAT: Update stat for SRT. v5.0.46
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Aug 27, 2022
1 parent 4e3ea99 commit 6508a08
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions trunk/doc/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion trunk/src/app/srs_app_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion trunk/src/app/srs_app_srt_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion trunk/src/core/srs_core_version5.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

#define VERSION_MAJOR 5
#define VERSION_MINOR 0
#define VERSION_REVISION 45
#define VERSION_REVISION 46

#endif

0 comments on commit 6508a08

Please sign in to comment.