From 8b0bb76f7987e33ff1b13b5bdf360a9e15f96c68 Mon Sep 17 00:00:00 2001 From: imarom Date: Wed, 9 Mar 2016 18:04:31 +0200 Subject: RX STATS ! --- src/flow_stat.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/flow_stat.cpp') diff --git a/src/flow_stat.cpp b/src/flow_stat.cpp index 4e05de8a..b2714b1e 100644 --- a/src/flow_stat.cpp +++ b/src/flow_stat.cpp @@ -630,8 +630,12 @@ bool CFlowStatRuleMgr::dump_json(std::string & json, bool force_sync) { root["name"] = "flow_stats"; root["type"] = 0; - Json::Value &data_section = root["data"]; + if (force_sync) { + root["sync"] = true; + } + + Json::Value &data_section = root["data"]; data_section["ts"]["value"] = Json::Value::UInt64(os_get_hr_tick_64()); data_section["ts"]["freq"] = Json::Value::UInt64(os_get_hr_freq()); -- cgit 1.2.3-korg