Skip to content

Commit

Permalink
Making the live feed more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
zveinn committed Oct 24, 2024
1 parent 8dfa889 commit de83623
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ func RunTest(ctx context.Context, c shared.Config) (err error) {
if printCount%10 == 1 {
printRealTimeHeaders(tt)
}
printRealTimeRow(SuccessStyle, to, tt)
printRealTimeRow(BaseStyle, to, tt)

return false
}
Expand Down
27 changes: 14 additions & 13 deletions client/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,23 +73,23 @@ func initHeaders() {
headerSlice[Created] = header{"Created", 8}
headerSlice[Local] = header{"Local", 15}
headerSlice[Remote] = header{"Remote", 15}
headerSlice[RMSH] = header{"RMSH", 8}
headerSlice[RMSL] = header{"RMSL", 8}
headerSlice[TTFBH] = header{"TTFBH", 8}
headerSlice[TTFBL] = header{"TTFBL", 8}
headerSlice[RMSH] = header{"RMS(high)", 9}
headerSlice[RMSL] = header{"RMS(low)", 9}
headerSlice[TTFBH] = header{"TTFB(high)", 9}
headerSlice[TTFBL] = header{"TTFB(low)", 9}
headerSlice[TX] = header{"TX", 10}
headerSlice[TXL] = header{"TXLow", 10}
headerSlice[TXH] = header{"TXHigh", 10}
headerSlice[TXT] = header{"TXTotal", 15}
headerSlice[TXL] = header{"TX(low)", 10}
headerSlice[TXH] = header{"TX(high)", 10}
headerSlice[TXT] = header{"TX(total)", 15}
headerSlice[TXCount] = header{"#TX", 10}
headerSlice[ErrCount] = header{"#ERR", 6}
headerSlice[DroppedPackets] = header{"#Dropped", 9}
headerSlice[MemoryUsage] = header{"MemUsed", 7}
headerSlice[MemoryHigh] = header{"MemHigh", 7}
headerSlice[MemoryLow] = header{"MemLow", 7}
headerSlice[CPUUsage] = header{"CPUUsed", 7}
headerSlice[CPUHigh] = header{"CPUHigh", 7}
headerSlice[CPULow] = header{"CPULow", 7}
headerSlice[MemoryUsage] = header{"Mem(used)", 9}
headerSlice[MemoryHigh] = header{"Mem(high)", 9}
headerSlice[MemoryLow] = header{"Mem(low)", 9}
headerSlice[CPUUsage] = header{"CPU(used)", 9}
headerSlice[CPUHigh] = header{"CPU(high)", 9}
headerSlice[CPULow] = header{"CPU(low)", 9}
headerSlice[ID] = header{"ID", 30}
headerSlice[HumanTime] = header{"Time", 30}
}
Expand Down Expand Up @@ -191,6 +191,7 @@ func printRealTimeRow(style lipgloss.Style, entry *shared.TestOutput, t shared.T
PrintColumns(
style,
column{formatInt(int64(entry.ErrCount)), headerSlice[ErrCount].width},
column{formatUint(entry.TXC), headerSlice[TXCount].width},
column{formatUint(entry.TXH), headerSlice[TXH].width},
column{formatUint(entry.TXL), headerSlice[TXL].width},
column{formatUint(entry.TXT), headerSlice[TXT].width},
Expand Down

0 comments on commit de83623

Please sign in to comment.