about summary refs log tree commit diff
diff options
context:
space:
mode:
-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++
 			}