Skip to content

Commit

Permalink
[fix] jsonOuput -> jsonOutput
Browse files Browse the repository at this point in the history
  • Loading branch information
showwin committed Apr 19, 2021
1 parent 786bbd6 commit 8eb8139
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions speedtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,16 @@ func main() {
}
}

func startTest(servers speedtest.Servers, savingMode bool, jsonOuput bool) {
func startTest(servers speedtest.Servers, savingMode bool, jsonOutput bool) {
for _, s := range servers {
if !jsonOuput {
if !jsonOutput {
showServer(s)
}

err := s.PingTest()
checkError(err)

if jsonOuput {
if jsonOutput {
err := s.DownloadTest(savingMode)
checkError(err)

Expand All @@ -92,7 +92,7 @@ func startTest(servers speedtest.Servers, savingMode bool, jsonOuput bool) {
showServerResult(s)
}

if !jsonOuput && len(servers) > 1 {
if !jsonOutput && len(servers) > 1 {
showAverageServerResult(servers)
}
}
Expand Down

0 comments on commit 8eb8139

Please sign in to comment.