diff options
author | Jon Bratseth <bratseth@gmail.com> | 2023-04-18 13:12:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-18 13:12:55 +0200 |
commit | 4dd12fde1043fb42eeac2917d40e77e2682403e4 (patch) | |
tree | b3f44656ab364bc533cb5783608d11a1e6e8e1d2 /node-repository | |
parent | 73ef2088a353406467ba0f18e8d483944d228d0c (diff) | |
parent | 2e2d9c57a39425273d12b49183b55b46b5c680b2 (diff) |
Merge pull request #26754 from vespa-engine/bratseth/jdk20
Build with jdk20
Diffstat (limited to 'node-repository')
-rw-r--r-- | node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/CapacityChecker.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/CapacityChecker.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/CapacityChecker.java index c8b736cb25b..f3ea326a3c0 100644 --- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/CapacityChecker.java +++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/CapacityChecker.java @@ -130,7 +130,7 @@ public class CapacityChecker { Set<String> ipPool = host.ipConfig().pool().asSet(); for (var child : nodeChildren.get(host)) { hostResources = hostResources.subtract(child.resources().justNumbers()); - occupiedIps += child.ipConfig().primary().stream().filter(ipPool::contains).count(); + occupiedIps += (int)child.ipConfig().primary().stream().filter(ipPool::contains).count(); } availableResources.put(host, new AllocationResources(hostResources, host.ipConfig().pool().asSet().size() - occupiedIps)); } |