diff options
author | Leah Neukirchen <leah@vuxu.org> | 2024-02-24 00:08:22 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2024-02-24 00:16:03 +0100 |
commit | abd277cc1b6e994af243035d4629a91903a9b3ee (patch) | |
tree | ef8bc87a2050a3601fce4fa7fb15d45e6ce32494 | |
parent | 576402a961480cd90ca7329da6d6d64f2f5cedb6 (diff) | |
download | htping-abd277cc1b6e994af243035d4629a91903a9b3ee.tar.gz htping-abd277cc1b6e994af243035d4629a91903a9b3ee.tar.xz htping-abd277cc1b6e994af243035d4629a91903a9b3ee.zip |
HTTP status 400 is not a success
-rw-r--r-- | htping.go | 2 |
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++ } |