Skip to content

Commit d855217

Browse files
author
jmarkerink
committed
feat: extended hostInfo with cpuArch and physicalCores
1 parent ac36af6 commit d855217

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/java/de/bwaldvogel/mongo/backend/AbstractMongoBackend.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,12 @@ private Document handleHostInfo() {
223223
response.append("system", new Document()
224224
.append("currentTime", Instant.now())
225225
.append("hostname", Utils.getHostName())
226+
.append("cpuArch", System.getProperty("os.arch"))
226227
);
227228
response.append("extra", new Document()
228229
.append("versionString", osName + " " + osVersion)
229-
.append("kernelVersion", osVersion));
230+
.append("kernelVersion", osVersion)
231+
.append("physicalCores", Runtime.getRuntime().availableProcessors()));
230232
Utils.markOkay(response);
231233
return response;
232234
}

0 commit comments

Comments
 (0)