Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nbrownus committed Feb 17, 2017
1 parent e011a29 commit 87f21e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions audit.go
Expand Up @@ -30,8 +30,8 @@ func loadConfig(configFile string) (*viper.Viper, error) {
config := viper.New()
config.SetConfigFile(configFile)

config.SetDefault("events.min", 1300)
config.SetDefault("events.max", 1399)
config.SetDefault("events.min", 1300)
config.SetDefault("events.max", 1399)
config.SetDefault("message_tracking.enabled", true)
config.SetDefault("message_tracking.log_out_of_order", false)
config.SetDefault("message_tracking.max_out_of_order", 500)
Expand Down Expand Up @@ -336,8 +336,8 @@ func main() {
nlClient := NewNetlinkClient(config.GetInt("socket_buffer.receive"))
marshaller := NewAuditMarshaller(
writer,
uint16(config.GetInt("events.min")),
uint16(config.GetInt("events.max")),
uint16(config.GetInt("events.min")),
uint16(config.GetInt("events.max")),
config.GetBool("message_tracking.enabled"),
config.GetBool("message_tracking.log_out_of_order"),
config.GetInt("message_tracking.max_out_of_order"),
Expand Down
10 changes: 5 additions & 5 deletions marshaller.go
Expand Up @@ -8,7 +8,7 @@ import (
)

const (
EVENT_EOE = 1320 // End of multi packet event
EVENT_EOE = 1320 // End of multi packet event
)

type AuditMarshaller struct {
Expand All @@ -17,8 +17,8 @@ type AuditMarshaller struct {
lastSeq int
missed map[int]bool
worstLag int
eventMin uint16
eventMax uint16
eventMin uint16
eventMax uint16
trackMessages bool
logOutOfOrder bool
maxOutOfOrder int
Expand All @@ -38,8 +38,8 @@ func NewAuditMarshaller(w *AuditWriter, eventMin uint16, eventMax uint16, trackM
writer: w,
msgs: make(map[int]*AuditMessageGroup, 5), // It is not typical to have more than 2 message groups at any given time
missed: make(map[int]bool, 10),
eventMin: eventMin,
eventMax: eventMax,
eventMin: eventMin,
eventMax: eventMax,
trackMessages: trackMessages,
logOutOfOrder: logOOO,
maxOutOfOrder: maxOOO,
Expand Down

1 comment on commit 87f21e9

@ramosbugs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops, thanks for fixing!

Please sign in to comment.