流量统计事件确保0字节时也能触发

This commit is contained in:
xia-chu
2021-02-03 14:04:33 +08:00
parent b26f876cbb
commit 2b3ce0ec63
5 changed files with 5 additions and 5 deletions

View File

@@ -82,7 +82,7 @@ void RtspSession::onError(const SockException &err) {
//流量统计事件广播
GET_CONFIG(uint32_t,iFlowThreshold,General::kFlowThreshold);
if(_bytes_usage > iFlowThreshold * 1024){
if(_bytes_usage >= iFlowThreshold * 1024){
NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastFlowReport, _media_info, _bytes_usage, duration, isPlayer, static_cast<SockInfo &>(*this));
}