mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
(netflow, parse) fix time
This commit is contained in:
parent
905c56f176
commit
f23e3ff6ff
@ -100,7 +100,7 @@ def parse_flow(recv_stamp):
|
||||
continue
|
||||
if flow.has_field(flowd.FIELD_FLOW_TIMES):
|
||||
# calculate flow start, end, duration in ms
|
||||
flow_record['flow_end'] = (flow.recv_sec - flow.flow_finish / 1000.0)
|
||||
flow_record['flow_end'] = (flow.recv_sec - flow.flow_finish / 1000.0 + flow.sys_uptime_ms/1000.0)
|
||||
flow_record['duration_ms'] = (flow.flow_finish - flow.flow_start)
|
||||
flow_record['flow_start'] = flow_record['flow_end'] - flow_record['duration_ms'] / 1000.0
|
||||
# handle source data
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user