From 7b31357d9cf8a5a930e9423508d61b5b137049bb Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Sun, 13 Mar 2016 15:05:31 +0200 Subject: [PATCH] Always send timestamp in flow stat. Even if no data --- src/flow_stat.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 -- 2.16.6