Skip to content

Commit

Permalink
timer should be based on minutes not seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
danjenkins committed Aug 9, 2024
1 parent 3f91125 commit 65d0f16
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions cmd/iceperf/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func runService(ctx *cli.Context) error {
slog.SetDefault(logg)

if config.Timer.Enabled {
ticker := time.NewTicker(time.Duration(config.Timer.Interval) * time.Second)
ticker := time.NewTicker(time.Duration(config.Timer.Interval) * time.Minute)
runTest(logg, config)
for {
<-ticker.C
Expand Down Expand Up @@ -395,17 +395,17 @@ func runTest(logg *slog.Logger, config *config.Config) error {

// }
// if !config.Logging.Loki.Enabled && !config.Logging.API.Enabled {
headerFmt := color.New(color.FgGreen, color.Underline).SprintfFunc()
columnFmt := color.New(color.FgYellow).SprintfFunc()
headerFmt := color.New(color.FgGreen, color.Underline).SprintfFunc()
columnFmt := color.New(color.FgYellow).SprintfFunc()

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

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

tbl.Print()
tbl.Print()
//}
return nil
}
Expand Down

0 comments on commit 65d0f16

Please sign in to comment.