summaryrefslogtreecommitdiffstats
path: root/src/flow_stat.h
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-03-03 13:46:30 +0200
committerIdo Barnea <ibarnea@cisco.com>2016-03-03 13:46:30 +0200
commit378ed0a10ff8e3c32301072b539d7ab926133bad (patch)
treef3474b1beb5702e6b92b99f7fad705e133c18a69 /src/flow_stat.h
parente33e37ef326a7b240e152ee8e7a1ec8ac6cd749d (diff)
per flow stat bug fix (counting everything twice)
Diffstat (limited to 'src/flow_stat.h')
-rw-r--r--src/flow_stat.h1
1 files changed, 1 insertions, 0 deletions
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);