We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d393292 commit f0e4a87Copy full SHA for f0e4a87
src/main/java/opendota/Main.java
@@ -162,7 +162,7 @@ public void run()
162
// Otherwise, use hostname -i to get internal IP
163
ip = RegisterTask.shellExec("hostname -i");
164
}
165
- int nproc = Runtime.getRuntime().availableProcessors() * 1.5;
+ int nproc = Math.round(Runtime.getRuntime().availableProcessors() * 1.5);
166
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");
167
System.err.println(postCmd);
168
RegisterTask.shellExec(postCmd);
0 commit comments