Adding Environment

This commit is contained in:
Martin Karkowski 2021-06-07 07:59:36 +02:00
parent 7c4e00d6fa
commit 2c3a6ddb36
2 changed files with 75 additions and 69 deletions

View File

@ -1096,6 +1096,8 @@ export class nopeDispatcher implements INopeDispatcher {
const os = require("os");
return {
id: this.id,
env: "javascript",
version: "0.9.5",
host: {
cores: os.cpus().length,
cpu: `${os.cpus()[0].model}`,
@ -1109,6 +1111,8 @@ export class nopeDispatcher implements INopeDispatcher {
};
}
return {
env: "javascript",
version: "0.9.5",
host: {
cores: -1,
cpu: "unkown",

View File

@ -43,6 +43,8 @@ export interface IDispatcherInfo {
id: string;
timestamp: number;
status: ENopeDispatcherStatus;
env: string,
version: string,
host: {
cores: number;
cpu: string;