From: Ido Barnea Date: Sun, 13 Mar 2016 13:05:31 +0000 (+0200) Subject: Always send timestamp in flow stat. Even if no data X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=7b31357d9cf8a5a930e9423508d61b5b137049bb;p=trex.git Always send timestamp in flow stat. Even if no data --- diff --git a/src/flow_stat.cpp b/src/flow_stat.cpp index 1a083f84..dc039661 100644 --- a/src/flow_stat.cpp +++ b/src/flow_stat.cpp @@ -640,11 +640,8 @@ bool CFlowStatRuleMgr::dump_json(std::string & json, bool baseline) { data_section["ts"]["freq"] = Json::Value::UInt64(os_get_hr_freq()); if (m_user_id_map.is_empty()) { - if (baseline) { - json = writer.write(root); - return true; - } else - return false; + json = writer.write(root); + return true; } // read hw counters, and update