extended '/info' endpoint

This commit is contained in:
Daniel Sommer 2022-02-10 21:00:59 +01:00
parent 2ca7834ba0
commit ce81de43e6

View file

@ -18,13 +18,17 @@ function getLoadAverage(index) {
}
function getArchitecture() {
return os.arch;
return os.arch();
}
function getOperatingSystem() {
return os.release();
}
function getType() {
return os.type();
}
function getPlatform() {
return os.platform();
}
@ -54,6 +58,7 @@ function getHostInfo() {
load: getLoadAverage(),
arch: getArchitecture(),
os: getOperatingSystem(),
type: getType(),
platform: getPlatform(),
kernel: getKernelVersion(),
cpu: getCpuInfo(),
@ -67,6 +72,7 @@ module.exports = {
getLoadAverage,
getArchitecture,
getOperatingSystem,
getType,
getPlatform,
getKernelVersion,
getCpuInfo,