Skip to content

Commit

Permalink
Add Time To Connected State to the table printed at the end of the run (
Browse files Browse the repository at this point in the history
#17)

* add Time To Connected State to the table printed at the end of the run

* move new column to before max throughput
  • Loading branch information
marcovidonis authored Dec 20, 2024
1 parent de731ac commit e22765c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/iceperf/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,11 +398,11 @@ func runTest(logg *slog.Logger, config *config.Config) error {
headerFmt := color.New(color.FgGreen, color.Underline).SprintfFunc()
columnFmt := color.New(color.FgYellow).SprintfFunc()

tbl := table.New("Provider", "Scheme", "Protocol", "Time to candidate", "Max Throughput", "TURN Transfer Latency")
tbl := table.New("Provider", "Scheme", "Protocol", "Time to candidate", "Time to Connected State", "Max Throughput", "TURN Transfer Latency")
tbl.WithHeaderFormatter(headerFmt).WithFirstColumnFormatter(columnFmt)

for _, st := range results {
tbl.AddRow(st.Provider, st.Scheme, st.Protocol, st.OffererTimeToReceiveCandidate, st.ThroughputMax, st.LatencyFirstPacket)
tbl.AddRow(st.Provider, st.Scheme, st.Protocol, st.OffererTimeToReceiveCandidate, st.TimeToConnectedState, st.ThroughputMax, st.LatencyFirstPacket)
}

tbl.Print()
Expand Down

0 comments on commit e22765c

Please sign in to comment.