Skip to content

Commit

Permalink
analyze: Time columns look better with align_right
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Sep 30, 2024
1 parent 8ef1b62 commit 2a428d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/analyze/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ func (a *Analyzer) PrintTopValues(displayRecord map[netip.Prefix]time.Time, sort
table.SetColumnSeparator("")
table.SetRowSeparator("")
table.SetTablePadding(" ")
table.SetAutoFormatHeaders(false)
table.SetHeaderAlignment(tablewriter.ALIGN_LEFT)
table.SetAlignment(tablewriter.ALIGN_LEFT)
table.SetHeaderLine(false)
Expand All @@ -432,8 +433,8 @@ func (a *Analyzer) PrintTopValues(displayRecord map[netip.Prefix]time.Time, sort
tablewriter.ALIGN_RIGHT,
tablewriter.ALIGN_RIGHT,
tablewriter.ALIGN_DEFAULT,
tablewriter.ALIGN_DEFAULT,
tablewriter.ALIGN_DEFAULT,
tablewriter.ALIGN_RIGHT,
tablewriter.ALIGN_RIGHT,
tablewriter.ALIGN_RIGHT,
}
tHeaders := []string{"CIDR", "Conn", "Bytes", "Reqs", "Avg", "URL", "URL Since", "URL Last", "UA"}
Expand Down

0 comments on commit 2a428d5

Please sign in to comment.