mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 03:55:58 +08:00
流量统计事件确保0字节时也能触发
This commit is contained in:
@@ -36,7 +36,7 @@ void RtmpSession::onError(const SockException& err) {
|
||||
//流量统计事件广播
|
||||
GET_CONFIG(uint32_t,iFlowThreshold,General::kFlowThreshold);
|
||||
|
||||
if(_total_bytes > iFlowThreshold * 1024){
|
||||
if(_total_bytes >= iFlowThreshold * 1024){
|
||||
NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastFlowReport, _media_info, _total_bytes, duration, isPlayer, static_cast<SockInfo &>(*this));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user