Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lahsivjar committed Jul 12, 2023
1 parent 200fa90 commit a7b9976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aggregators/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ func EventToCombinedMetrics(
// Approximate events total by uniformly distributing the events total
// amongst the partitioned key values.
weightedEventsTotal := 1 / float64(len(kvs))
eventTs := e.GetEvent().GetReceived().AsTime()
eventTS := e.GetEvent().GetReceived().AsTime()
for i := range kvs {
cv := &kvs[i].Value
cv.eventsTotal = weightedEventsTotal
cv.youngestEventTimestamp = eventTs
cv.youngestEventTimestamp = eventTS
}
return kvs, nil
}
Expand Down

0 comments on commit a7b9976

Please sign in to comment.