From 0093a54b34ceaea91e8be01039d0c6e1ad6a6f2b Mon Sep 17 00:00:00 2001 From: ChenGH Date: Mon, 4 Oct 2021 13:40:17 +0800 Subject: [PATCH] fix bandwidth kbps caculate bug (#2648) --- trunk/src/app/srs_app_bandwidth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/src/app/srs_app_bandwidth.cpp b/trunk/src/app/srs_app_bandwidth.cpp index 38584a7cf..dd8e930f4 100644 --- a/trunk/src/app/srs_app_bandwidth.cpp +++ b/trunk/src/app/srs_app_bandwidth.cpp @@ -264,7 +264,7 @@ srs_error_t SrsBandwidth::play_checking(SrsBandwidthSample* sample, SrsKbpsLimit limit->send_limit(); } srs_update_system_time(); - sample->calc_kbps((int)_rtmp->get_send_bytes(), srsu2msi(srs_get_system_time() - starttime)); + sample->calc_kbps((int)_rtmp->get_send_bytes(), srs_get_system_time() - starttime); return err; } @@ -342,7 +342,7 @@ srs_error_t SrsBandwidth::publish_checking(SrsBandwidthSample* sample, SrsKbpsLi limit->recv_limit(); } srs_update_system_time(); - sample->calc_kbps((int)_rtmp->get_recv_bytes(), srsu2msi(srs_get_system_time() - starttime)); + sample->calc_kbps((int)_rtmp->get_recv_bytes(), srs_get_system_time() - starttime); return err; }