Skip to content

Commit 672e43a

Browse files
authored
Update Main.java
1 parent e971df3 commit 672e43a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/opendota/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public void run() {
227227
// Otherwise, use hostname -i to get internal IP
228228
ip = RegisterTask.shellExec("hostname -i");
229229
}
230-
long nproc = Math.max(Runtime.getRuntime().availableProcessors(), 10);
230+
long nproc = Math.max(Runtime.getRuntime().availableProcessors(), 8);
231231
String postCmd = "curl -X POST --max-time 60 -L " + System.getenv().get("SERVICE_REGISTRY_HOST")
232232
+ "/register/parser/" + ip + ":5600" + "?size=" + nproc + "&key="
233233
+ System.getenv().get("RETRIEVER_SECRET");

0 commit comments

Comments
 (0)