From b678b525c207373a2d84661b339f0536ab0a7cfe Mon Sep 17 00:00:00 2001 From: kexianjun Date: Wed, 24 Apr 2019 09:12:52 +0800 Subject: [PATCH] fix-typo --- .../csp/sentinel/dashboard/controller/SystemController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/controller/SystemController.java b/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/controller/SystemController.java index 815efcafec..8e99718bc3 100755 --- a/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/controller/SystemController.java +++ b/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/controller/SystemController.java @@ -78,7 +78,7 @@ Result> queryMachineRules(HttpServletRequest request, Str } } - private int countNotNullAndNotNegtive(Number... values) { + private int countNotNullAndNotNegative(Number... values) { int notNullCount = 0; for (int i = 0; i < values.length; i++) { if (values[i] != null && values[i].doubleValue() >= 0) { @@ -103,7 +103,7 @@ Result add(HttpServletRequest request, if (port == null) { return Result.ofFail(-1, "port can't be null"); } - int notNullCount = countNotNullAndNotNegtive(avgLoad, avgRt, maxThread, qps); + int notNullCount = countNotNullAndNotNegative(avgLoad, avgRt, maxThread, qps); if (notNullCount != 1) { return Result.ofFail(-1, "only one of [avgLoad, avgRt, maxThread, qps] " + "value must be set >= 0, but " + notNullCount + " values get");