Skip to content

Commit d1db9c7

Browse files
authored
Update Main.java
1 parent 3260ff8 commit d1db9c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/opendota/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public void run()
166166
// Otherwise, use hostname -i to get internal IP
167167
ip = RegisterTask.shellExec("hostname -i");
168168
}
169-
long nproc = Math.round(Runtime.getRuntime().availableProcessors() * 1.5);
169+
long nproc = Runtime.getRuntime().availableProcessors();
170170
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");
171171
System.err.println(postCmd);
172172
RegisterTask.shellExec(postCmd);

0 commit comments

Comments
 (0)