dashboard: fix typo in SystemController (#700)
This commit is contained in:
parent
82578e1fdf
commit
4819675f84
|
|
@ -78,7 +78,7 @@ public class SystemController {
|
|||
}
|
||||
}
|
||||
|
||||
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 @@ public class SystemController {
|
|||
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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue