From abd277cc1b6e994af243035d4629a91903a9b3ee Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 24 Feb 2024 00:08:22 +0100 Subject: HTTP status 400 is not a success --- htping.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'htping.go') diff --git a/htping.go b/htping.go index 6cc0565..ae3f196 100644 --- a/htping.go +++ b/htping.go @@ -253,7 +253,7 @@ func stats(results chan result, done chan bool) { sum += r.dur sum2 += r.dur * r.dur nrecv++ - if r.code <= 400 { + if r.code < 400 { nsucc++ } -- cgit 1.4.1