fixed naming of latency to response time (#388)

This commit is contained in:
RoyUP9
2021-10-21 12:45:17 +03:00
committed by GitHub
parent e2e69a3dc4
commit 4f6da91d74
2 changed files with 4 additions and 4 deletions

View File

@@ -111,7 +111,7 @@ func PassedValidationRules(rulesMatched []RulesMatched) (bool, int64, int) {
if rule.Matched == false {
return false, responseTime, numberOfRulesMatched
} else {
if strings.ToLower(rule.Rule.Type) == "responseTime" {
if strings.ToLower(rule.Rule.Type) == "slo" {
if rule.Rule.ResponseTime < responseTime || responseTime == -1 {
responseTime = rule.Rule.ResponseTime
}