流量汇报事件添加时长字段

This commit is contained in:
xiongziliang
2018-10-09 09:36:03 +08:00
parent cacd241223
commit 5d7ed15355
4 changed files with 16 additions and 4 deletions

View File

@@ -169,7 +169,11 @@ void HttpSession::onError(const SockException& err) {
GET_CONFIG_AND_REGISTER(uint32_t,iFlowThreshold,Broadcast::kFlowThreshold);
if(m_ui64TotalBytes > iFlowThreshold * 1024){
NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastFlowReport,m_mediaInfo,m_ui64TotalBytes,*this);
NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastFlowReport,
m_mediaInfo,
m_ui64TotalBytes,
m_ticker.createdTime()/1000,
*this);
}
}