diff --git a/producer/producer_nf.go b/producer/producer_nf.go index 3b54daa..e42391c 100644 --- a/producer/producer_nf.go +++ b/producer/producer_nf.go @@ -355,33 +355,43 @@ func ConvertNetFlowDataSet(version uint16, baseTime uint32, uptime uint32, recor case netflow.IPFIX_FIELD_flowStartSeconds: DecodeUNumber(v, &time) flowMessage.TimeFlowStart = time + flowMessage.TimeFlowStartMs = time*1000 case netflow.IPFIX_FIELD_flowStartMilliseconds: DecodeUNumber(v, &time) flowMessage.TimeFlowStart = time / 1000 + flowMessage.TimeFlowStartMs = time case netflow.IPFIX_FIELD_flowStartMicroseconds: DecodeUNumber(v, &time) flowMessage.TimeFlowStart = time / 1000000 + flowMessage.TimeFlowStartMs = time / 1000 case netflow.IPFIX_FIELD_flowStartNanoseconds: DecodeUNumber(v, &time) flowMessage.TimeFlowStart = time / 1000000000 + flowMessage.TimeFlowStartMs = time / 1000000 case netflow.IPFIX_FIELD_flowEndSeconds: DecodeUNumber(v, &time) flowMessage.TimeFlowEnd = time + flowMessage.TimeFlowEndMs = time*1000 case netflow.IPFIX_FIELD_flowEndMilliseconds: DecodeUNumber(v, &time) flowMessage.TimeFlowEnd = time / 1000 + flowMessage.TimeFlowEndMs = time case netflow.IPFIX_FIELD_flowEndMicroseconds: DecodeUNumber(v, &time) flowMessage.TimeFlowEnd = time / 1000000 + flowMessage.TimeFlowEndMs = time / 1000 case netflow.IPFIX_FIELD_flowEndNanoseconds: DecodeUNumber(v, &time) flowMessage.TimeFlowEnd = time / 1000000000 + flowMessage.TimeFlowEndMs = time / 1000000 case netflow.IPFIX_FIELD_flowStartDeltaMicroseconds: DecodeUNumber(v, &time) flowMessage.TimeFlowStart = uint64(baseTime) - time/1000000 + flowMessage.TimeFlowStartMs = uint64(baseTime) - time/1000 case netflow.IPFIX_FIELD_flowEndDeltaMicroseconds: DecodeUNumber(v, &time) flowMessage.TimeFlowEnd = uint64(baseTime) - time/1000000 + flowMessage.TimeFlowEndMs = uint64(baseTime) - time/1000 // RFC7133 case netflow.IPFIX_FIELD_dataLinkFrameSize: DecodeUNumber(v, &(flowMessage.Bytes))