Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
heanlan committed Sep 28, 2021
1 parent f2e5883 commit c1e9be9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/intermediate/aggregate.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,14 @@ func (a *AggregationProcess) aggregateRecords(incomingRecord, existingRecord ent
existingIeWithValue, index, _ := existingRecord.GetInfoElementWithValue(element)
switch ieWithValue.Element.Name {
case "flowEndSeconds":
srcPodName, _, _ := incomingRecord.GetInfoElementWithValue("sourcePodName")
dstPodName, _, _ := incomingRecord.GetInfoElementWithValue("destinationPodName")
if srcPodName.Value.(string) == "perftest-a" || dstPodName.Value.(string) == "perftest-c" {
klog.Info("FLOWENDSECONDS: ", ieWithValue.Value)
klog.Info("FILLSRCSTATS: ", fillSrcStats)
klog.Info("FILLDSTSTATS: ", fillDstStats)
klog.Info("\n\n")
}
// Update flow end timestamp if it is latest.
if isLatest {
existingIeWithValue.Value = ieWithValue.Value
Expand Down

0 comments on commit c1e9be9

Please sign in to comment.