diff options
author | Ido Barnea <ibarnea@cisco.com> | 2016-03-09 11:25:05 +0200 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2016-03-09 11:25:05 +0200 |
commit | 5f85bbd057dcf3298c8f1bab7b968952d6ec7693 (patch) | |
tree | 6194eacc127504a1b706888ee2637ab3319a3beb /src/flow_stat.cpp | |
parent | cc8c0e225bc495f67a379a757cc01a3fe778620d (diff) |
Flow stat fix for issue of counting more than 1 stream
Diffstat (limited to 'src/flow_stat.cpp')
-rw-r--r-- | src/flow_stat.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/flow_stat.cpp b/src/flow_stat.cpp index 266acb3f..57aa29c5 100644 --- a/src/flow_stat.cpp +++ b/src/flow_stat.cpp @@ -653,7 +653,8 @@ bool CFlowStatRuleMgr::dump_json(std::string & json, bool force_sync) { p_user_id->set_need_to_send_rx(port); } } else { - std::cerr << __METHOD_NAME__ << i << ":Could not count " << rx_stats[i] << " rx packets, because no mapping was found" << std::endl; + std::cerr << __METHOD_NAME__ << i << ":Could not count " << rx_stats[i] << " rx packets, on port " + << (uint16_t)port << ", because no mapping was found." << std::endl; } } if (tx_stats[i].get_pkts() != 0) { @@ -665,7 +666,8 @@ bool CFlowStatRuleMgr::dump_json(std::string & json, bool force_sync) { p_user_id->set_need_to_send_tx(port); } } else { - std::cerr << __METHOD_NAME__ << i << ":Could not count tx " << tx_pkts << " because no mapping was found" << std::endl; + std::cerr << __METHOD_NAME__ << i << ":Could not count " << tx_pkts << " tx packets on port " + << (uint16_t)port << ", because no mapping was found." << std::endl; } } } |