Skip to content

Commit 427eff6

Browse files
committed
Fix error counting
1 parent 8c347a8 commit 427eff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func totErrors(data *queue.AggData) int {
184184
var okReqs int
185185
for statusStr, value := range data.Statuses {
186186
status, _ := strconv.Atoi(statusStr)
187-
if status >= 200 && status <= 299 {
187+
if status < 400 {
188188
okReqs += value
189189
}
190190
}

0 commit comments

Comments
 (0)