Skip to content

Commit

Permalink
check NetworkEvents content to decide if it's set
Browse files Browse the repository at this point in the history
  • Loading branch information
jotak committed Jan 13, 2025
1 parent 9e5ccde commit d331349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tracer/tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ func (m *FlowFetcher) increaseEnrichmentStats(met *metrics.Metrics, flow *model.
flow.AdditionalMetrics.DnsRecord.Id != 0,
flow.AdditionalMetrics.FlowRtt != 0,
flow.AdditionalMetrics.PktDrops.Packets != 0,
flow.AdditionalMetrics.NetworkEventsIdx != 0,
!model.AllZerosMetaData(flow.AdditionalMetrics.NetworkEvents[0]),
!model.AllZeroIP(model.IP(flow.AdditionalMetrics.TranslatedFlow.Daddr)),
)
} else {
Expand Down

0 comments on commit d331349

Please sign in to comment.