From 378ed0a10ff8e3c32301072b539d7ab926133bad Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Thu, 3 Mar 2016 13:46:30 +0200 Subject: per flow stat bug fix (counting everything twice) --- src/flow_stat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/flow_stat.h') diff --git a/src/flow_stat.h b/src/flow_stat.h index 4ea59a2c..eed3b797 100644 --- a/src/flow_stat.h +++ b/src/flow_stat.h @@ -138,6 +138,7 @@ class CFlowStatUserIdMap { public: CFlowStatUserIdMap(); friend std::ostream& operator<<(std::ostream& os, const CFlowStatUserIdMap& cf); + bool is_empty() {return (m_map.empty() == true);}; uint16_t get_hw_id(uint32_t user_id); class CFlowStatUserIdInfo * find_user_id(uint32_t user_id); class CFlowStatUserIdInfo * add_user_id(uint32_t user_id, uint8_t proto); -- cgit 1.2.3-korg