Skip to content

Commit 287a5a3

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 3eca4af commit 287a5a3

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
@@ -108,9 +108,9 @@ protected int getHeapSizeMb(Settings nodeSettings, MachineNodeRole role, long av
108108
* equals the original 40% of the total memory.
109109
*/
110110
if (availableMemory <= (GB * 16)) {
111-
yield mb((long) (availableMemory * .4 * 2/3), 4);
111+
yield mb((long) (availableMemory * .4 * 2 / 3), 4);
112112
} else {
113-
yield mb((long) min(((GB * 16) * .4 + (availableMemory - GB * 16) * .1) * 2/3, MAX_HEAP_SIZE), 4);
113+
yield mb((long) min(((GB * 16) * .4 + (availableMemory - GB * 16) * .1) * 2 / 3, MAX_HEAP_SIZE), 4);
114114
}
115115
}
116116
/*

0 commit comments

Comments
 (0)