Skip to content

Commit

Permalink
variable renames
Browse files Browse the repository at this point in the history
  • Loading branch information
hyposcaler-bot committed Nov 15, 2024
1 parent 6ea1998 commit f900b6a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/tools_netem.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func printImpairments(qdiscs []gotc.Object) {
table.SetStyle(tableWriter.StyleLight)
table.Style().Format.Header = text.FormatTitle

prettyHeader := tableWriter.Row{
header := tableWriter.Row{
"Interface",
"Delay",
"Jitter",
Expand All @@ -179,15 +179,15 @@ func printImpairments(qdiscs []gotc.Object) {
"Corruption",
}

table.AppendHeader(prettyHeader)
table.AppendHeader(header)

var prettyRows []tableWriter.Row
var rows []tableWriter.Row

for _, qdisc := range qdiscs {
prettyRows = append(prettyRows, qdiscToTableData(qdisc))
rows = append(rows, qdiscToTableData(qdisc))
}

table.AppendRows(prettyRows)
table.AppendRows(rows)
table.Render()
}

Expand Down

0 comments on commit f900b6a

Please sign in to comment.