Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS committed Jun 29, 2024
1 parent c564454 commit 8c7b506
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sp/sp.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ func NearbySpeedTest() {
})
checkError(err)
fmt.Print(formatString("Speedtest.net", 16))
fmt.Print(formatString(fmt.Sprintf("%-8.2f Mbps", NearbyServer.ULSpeed.Mbps()), 16))
fmt.Print(formatString(fmt.Sprintf("%-8.2f Mbps", NearbyServer.DLSpeed.Mbps()), 16))
fmt.Print(formatString(fmt.Sprintf("%-8.2fMbps", NearbyServer.ULSpeed.Mbps()), 16))
fmt.Print(formatString(fmt.Sprintf("%-8.2fMbps", NearbyServer.DLSpeed.Mbps()), 16))
fmt.Print(formatString(fmt.Sprintf("%s", NearbyServer.Latency), 16))
fmt.Print(formatString(PacketLoss, 16))
fmt.Println()
Expand Down Expand Up @@ -213,8 +213,8 @@ func CustomSpeedTest(url, byWhat string, num int) {
PacketLoss = "N/A"
}
fmt.Print(formatString(server.Name, 16))
fmt.Print(formatString(fmt.Sprintf("%-8.2f Mbps", server.ULSpeed.Mbps()), 16))
fmt.Print(formatString(fmt.Sprintf("%-8.2f Mbps", server.DLSpeed.Mbps()), 16))
fmt.Print(formatString(fmt.Sprintf("%-8.2fMbps", server.ULSpeed.Mbps()), 16))
fmt.Print(formatString(fmt.Sprintf("%-8.2fMbps", server.DLSpeed.Mbps()), 16))
fmt.Print(formatString(fmt.Sprintf("%s", server.Latency), 16))
fmt.Print(formatString(PacketLoss, 16))
fmt.Println()
Expand Down

0 comments on commit 8c7b506

Please sign in to comment.