Skip to content

Commit

Permalink
Fix return code
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Dorschner committed Apr 20, 2022
1 parent 13e6b6a commit 0d23df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-
rc = check.Critical
} else if total >= cliQueryConfig.Warning {
rc = check.Warning
} else if total == 0 {
} else if total >= 0 {
rc = check.OK
}

Expand Down

0 comments on commit 0d23df7

Please sign in to comment.