Skip to content

Commit

Permalink
fix: lint error (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
r3inbowari authored Mar 17, 2023
1 parent 9a4e5d3 commit 856e6e6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions speedtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ func main() {
}
taskManager.Println("Test Server: " + server.String())
taskManager.Run("Latency: ", func(task *Task) {
server.PingTest(func(latency time.Duration) {
task.CheckError(server.PingTest(func(latency time.Duration) {
task.Printf("Latency: %v", latency)
})
}))
task.Printf("Latency: %v Jitter: %v Min: %v Max: %v", server.Latency, server.Jitter, server.MinLatency, server.MaxLatency)
task.Complete()
})
Expand Down Expand Up @@ -144,10 +144,9 @@ func main() {
if *jsonOutput {
json, errMarshal := speedtestClient.JSON(targets)
if errMarshal != nil {
fmt.Printf(errMarshal.Error())
return
}
fmt.Printf(string(json))
fmt.Print(string(json))
}
}

Expand Down

0 comments on commit 856e6e6

Please sign in to comment.