Skip to content

Commit b023de7

Browse files
[CI] Auto commit changes from spotless
1 parent 07ab5ee commit b023de7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

distribution/tools/server-cli/src/main/java/org/elasticsearch/server/cli/MachineDependentHeap.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ protected int getHeapSizeMb(Settings nodeSettings, MachineNodeRole role, long av
106106
* the same. That means it now also accounts for direct memory.
107107
*/
108108
if (availableMemory <= (GB * 16)) {
109-
yield mb((long) (availableMemory * .4 * 2/3), 4);
109+
yield mb((long) (availableMemory * .4 * 2 / 3), 4);
110110
} else {
111-
yield mb((long) min(((GB * 16) * .4 + (availableMemory - GB * 16) * .1) * 2/3, MAX_HEAP_SIZE), 4);
111+
yield mb((long) min(((GB * 16) * .4 + (availableMemory - GB * 16) * .1) * 2 / 3, MAX_HEAP_SIZE), 4);
112112
}
113113
}
114114
/*

0 commit comments

Comments
 (0)