diff options
author | Ido Barnea <ibarnea@cisco.com> | 2016-03-03 16:12:36 +0200 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2016-03-03 16:12:36 +0200 |
commit | 2760d0eef3076580f3d112c2e754e108f6028dc7 (patch) | |
tree | d79769d7c8717946ec6c34388024b5709563d781 /src/flow_stat.cpp | |
parent | 378ed0a10ff8e3c32301072b539d7ab926133bad (diff) |
Small flow stat fix
Diffstat (limited to 'src/flow_stat.cpp')
-rw-r--r-- | src/flow_stat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flow_stat.cpp b/src/flow_stat.cpp index cb5c7e08..7f9df8c7 100644 --- a/src/flow_stat.cpp +++ b/src/flow_stat.cpp @@ -649,7 +649,7 @@ bool CFlowStatRuleMgr::dump_json(std::string & json) { for (uint8_t port = 0; port < m_num_ports; port++) { std::string str_port = static_cast<std::ostringstream*>( &(std::ostringstream() << port) )->str(); if (user_id_info->get_rx_counter(port) != 0) { - data_section[str_user_id]["rx"][str_port] = Json::Value::UInt64(user_id_info->get_rx_counter(port)); + data_section[str_user_id]["rx-pkts"][str_port] = Json::Value::UInt64(user_id_info->get_rx_counter(port)); ret = true; } if (user_id_info->get_tx_counter(port).get_pkts() != 0) { |