Merge branch 'master' of https://github.com/provectus/kafka-ui into i138/node
This commit is contained in:
commit
bdf9505b63
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ public interface ClusterMapper {
|
||||||
}
|
}
|
||||||
|
|
||||||
default BigDecimal sumMetrics(Map<String, BigDecimal> metrics) {
|
default BigDecimal sumMetrics(Map<String, BigDecimal> metrics) {
|
||||||
if (metrics == null) {
|
if (metrics != null) {
|
||||||
return metrics.values().stream().reduce(BigDecimal.ZERO, BigDecimal::add);
|
return metrics.values().stream().reduce(BigDecimal.ZERO, BigDecimal::add);
|
||||||
} else {
|
} else {
|
||||||
return BigDecimal.ZERO;
|
return BigDecimal.ZERO;
|
||||||
|
|
Loading…
Add table
Reference in a new issue