diff options
author | 2016-03-08 16:05:16 +0200 | |
---|---|---|
committer | 2016-03-10 17:16:37 +0200 | |
commit | 094411ef99a485017d300e632e14aee10c8234c5 (patch) | |
tree | efec86ba4d8dc499d1ad630e41fba44fdc55bb24 /src | |
parent | 60fbd456c4d804adc903839f916c9c2bbe272d94 (diff) |
BW for RX stats
Diffstat (limited to 'src')
-rw-r--r-- | src/flow_stat.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/flow_stat.cpp b/src/flow_stat.cpp index 57aa29c5..4e05de8a 100644 --- a/src/flow_stat.cpp +++ b/src/flow_stat.cpp @@ -631,7 +631,9 @@ bool CFlowStatRuleMgr::dump_json(std::string & json, bool force_sync) { root["name"] = "flow_stats"; root["type"] = 0; Json::Value &data_section = root["data"]; - data_section["timestamp"] = Json::Value::UInt64(os_get_hr_tick_64()); + + data_section["ts"]["value"] = Json::Value::UInt64(os_get_hr_tick_64()); + data_section["ts"]["freq"] = Json::Value::UInt64(os_get_hr_freq()); if (m_user_id_map.is_empty()) { if (force_sync) { |