summaryrefslogtreecommitdiffstats
path: root/src/flow_stat.cpp
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-05-18 16:53:42 +0300
committerIdo Barnea <ibarnea@cisco.com>2016-05-18 19:23:58 +0300
commitcc2abc13f1f74612b211d3cd235341745b16bd49 (patch)
treea35f5b0e0f9388d4be5ca25337fa6dbef2c0d8a9 /src/flow_stat.cpp
parent91120a37444f8a2f5e1d676f9a091f54346a3cfd (diff)
Change to latency python + small fixes
Diffstat (limited to 'src/flow_stat.cpp')
-rw-r--r--src/flow_stat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flow_stat.cpp b/src/flow_stat.cpp
index 7f086ab3..1a3e54aa 100644
--- a/src/flow_stat.cpp
+++ b/src/flow_stat.cpp
@@ -1049,13 +1049,13 @@ bool CFlowStatRuleMgr::dump_json(std::string & s_json, std::string & l_json, boo
rfc2544_info[hw_id].get_latency_json(lat_hist);
user_id_info_p->set_seq_err_cnt(rfc2544_info[hw_id].get_seq_err_cnt());
user_id_info_p->set_ooo_cnt(rfc2544_info[hw_id].get_ooo_cnt());
- l_data_section[str_user_id]["latency"] = lat_hist;
+ l_data_section[str_user_id]["latency"]["h"] = lat_hist;
l_data_section[str_user_id]["latency"]["last_max"] = rfc2544_info[hw_id].get_last_max_usec();
l_data_section[str_user_id]["latency"]["jitter"] = rfc2544_info[hw_id].get_jitter_usec();
} else {
// Not mapped to hw_id. Get saved info.
user_id_info_p->get_latency_json(lat_hist);
- l_data_section[str_user_id]["latency"]["histogram"] = lat_hist;
+ l_data_section[str_user_id]["latency"]["h"] = lat_hist;
l_data_section[str_user_id]["latency"]["last_max"] = 0;
l_data_section[str_user_id]["latency"]["jitter"] = user_id_info_p->get_jitter_usec();
}