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 4bc8e90 commit c564454
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("%-10.2f Mbps", NearbyServer.ULSpeed.Mbps()), 16))
fmt.Print(formatString(fmt.Sprintf("%-10.2f Mbps", NearbyServer.DLSpeed.Mbps()), 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("%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("%-10.2f Mbps", server.ULSpeed.Mbps()), 16))
fmt.Print(formatString(fmt.Sprintf("%-10.2f Mbps", server.DLSpeed.Mbps()), 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("%s", server.Latency), 16))
fmt.Print(formatString(PacketLoss, 16))
fmt.Println()
Expand Down

0 comments on commit c564454

Please sign in to comment.