From d9cc63306748f0ef954667753441ebc3367708e0 Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Tue, 17 May 2016 14:01:20 +0300 Subject: small corrections to counters --- src/flow_stat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/flow_stat.cpp') diff --git a/src/flow_stat.cpp b/src/flow_stat.cpp index 5fc3aadd..7f086ab3 100644 --- a/src/flow_stat.cpp +++ b/src/flow_stat.cpp @@ -1051,13 +1051,13 @@ bool CFlowStatRuleMgr::dump_json(std::string & s_json, std::string & l_json, boo 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"]["last_max"] = rfc2544_info[hw_id].get_last_max_usec(); - l_data_section[str_user_id]["jitter"] = rfc2544_info[hw_id].get_jitter_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"]["last_max"] = 0; - l_data_section[str_user_id]["jitter"] = user_id_info_p->get_jitter_usec(); + l_data_section[str_user_id]["latency"]["jitter"] = user_id_info_p->get_jitter_usec(); } //todo: add last 10 samples l_data_section[str_user_id]["err_cntrs"]["dropped"] -- cgit 1.2.3-korg