流量汇报事件添加客户端ip和端口参数

This commit is contained in:
xiongziliang
2020-02-13 11:33:59 +08:00
parent ead8b5a89c
commit 7e25537957
11 changed files with 34 additions and 15 deletions

View File

@@ -112,7 +112,7 @@ void HttpSession::onError(const SockException& err) {
GET_CONFIG(uint32_t,iFlowThreshold,General::kFlowThreshold);
if(_ui64TotalBytes > iFlowThreshold * 1024){
NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastFlowReport, _mediaInfo, _ui64TotalBytes, _ticker.createdTime()/1000, true);
NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastFlowReport, _mediaInfo, _ui64TotalBytes, _ticker.createdTime()/1000, true, get_peer_ip(), get_peer_port());
}
return;
}