about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2024-02-24 00:08:22 +0100
committerLeah Neukirchen <leah@vuxu.org>2024-02-24 00:16:03 +0100
commitabd277cc1b6e994af243035d4629a91903a9b3ee (patch)
treeef8bc87a2050a3601fce4fa7fb15d45e6ce32494
parent576402a961480cd90ca7329da6d6d64f2f5cedb6 (diff)
downloadhtping-abd277cc1b6e994af243035d4629a91903a9b3ee.tar.gz
htping-abd277cc1b6e994af243035d4629a91903a9b3ee.tar.xz
htping-abd277cc1b6e994af243035d4629a91903a9b3ee.zip
HTTP status 400 is not a success
-rw-r--r--htping.go2
1 files changed, 1 insertions, 1 deletions
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++
 			}