Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
bhale-ibm committed Feb 26, 2024
1 parent 28e20e8 commit 8bea993
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/pipeline/write/write_ipfix.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func loadCustomRegistry(EnterpriseID uint32) error {
ilog.WithError(err).Errorf("Failed to register element")
return err
}
err = registry.PutInfoElement((*entities.NewInfoElement("timeFlowRttNs", 7740, entities.Unsigned64, EnterpriseID, 8)), EnterpriseID)
err = registry.PutInfoElement((*entities.NewInfoElement("timeFlowRttNs", 7740, entities.Unsigned64, EnterpriseID, 8)), EnterpriseID)
if err != nil {
ilog.WithError(err).Errorf("Failed to register element")
return err
Expand Down Expand Up @@ -343,9 +343,9 @@ func setStandardIEValue(record config.GenericMap, ieValPtr *entities.InfoElement
}
case "timeFlowRttNs":
if record["TimeFlowRttNs"] != nil {
ieVal.SetUnsigned64Value(uint64(record["TimeFlowRttNs"].(int64)))
ieVal.SetUnsigned64Value(uint64(record["TimeFlowRttNs"].(int64)))
} else {
return fmt.Errorf("unable to find timeflowrtt in record")
return fmt.Errorf("unable to find timeflowrtt in record")
}
}
return nil
Expand Down

0 comments on commit 8bea993

Please sign in to comment.