summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-03-13 15:05:31 +0200
committerIdo Barnea <ibarnea@cisco.com>2016-03-13 15:05:31 +0200
commit7b31357d9cf8a5a930e9423508d61b5b137049bb (patch)
tree6de9acb276e7ab76f84635129c2c4a3bc5b29e16 /src
parentf53087722d09d19b4fa3ddea311484f3cc786a80 (diff)
Always send timestamp in flow stat. Even if no data
Diffstat (limited to 'src')
-rw-r--r--src/flow_stat.cpp7
1 files 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