Skip to content

Commit

Permalink
Use time.Second instead of hardcoded nanosecond values
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-linch committed Nov 15, 2021
1 parent d93c6af commit a1cbe6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speedtest/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func (s *Server) PingTest() error {
func (s *Server) PingTestContext(ctx context.Context) error {
pingURL := strings.Split(s.URL, "/upload.php")[0] + "/latency.txt"

l := time.Duration(100000000000) // 10sec
l := time.Second * 10
for i := 0; i < 3; i++ {
sTime := time.Now()

Expand Down

0 comments on commit a1cbe6a

Please sign in to comment.