We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3260ff8 commit d1db9c7Copy full SHA for d1db9c7
src/main/java/opendota/Main.java
@@ -166,7 +166,7 @@ public void run()
166
// Otherwise, use hostname -i to get internal IP
167
ip = RegisterTask.shellExec("hostname -i");
168
}
169
- long nproc = Math.round(Runtime.getRuntime().availableProcessors() * 1.5);
+ long nproc = Runtime.getRuntime().availableProcessors();
170
String postCmd = "curl -X POST --max-time 60 -L " + System.getenv().get("SERVICE_REGISTRY_HOST") + "/register/parser/" + ip + ":5600" + "?size=" + nproc + "&key=" + System.getenv().get("RETRIEVER_SECRET");
171
System.err.println(postCmd);
172
RegisterTask.shellExec(postCmd);
0 commit comments