Adding Environment
This commit is contained in:
parent
7c4e00d6fa
commit
2c3a6ddb36
@ -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",
|
||||
|
@ -43,6 +43,8 @@ export interface IDispatcherInfo {
|
||||
id: string;
|
||||
timestamp: number;
|
||||
status: ENopeDispatcherStatus;
|
||||
env: string,
|
||||
version: string,
|
||||
host: {
|
||||
cores: number;
|
||||
cpu: string;
|
||||
|
Loading…
Reference in New Issue
Block a user