Skip to content

Commit

Permalink
add storage info on server tab
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeTWC1984 committed Mar 23, 2024
1 parent 205396f commit 05c0211
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/comm.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,8 @@ module.exports = Class.create({
data: this.multi.data || {},
disabled: 0,
pid: process.pid,
nodev: process.version
nodev: process.version,
engine: this.storage.config.get('engine') || 'unknown'
};

// then add all workers
Expand All @@ -496,7 +497,8 @@ module.exports = Class.create({
data: worker.data || {},
disabled: worker.disabled || 0,
pid: worker.pid || -1,
nodev: worker.nodev || 'NA'
// nodev: worker.nodev || 'NA',
engine: worker.engine || 'unknown'
};
} // unique hostname
} // foreach worker
Expand Down
1 change: 1 addition & 0 deletions lib/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ module.exports = Class.create({
status.data = this.multi.data;
status.uptime = now - (this.server.started || now);
status.nodev = process.version;
status.engine = this.storage.config.get('engine') || 'unknown'
status.pid = process.pid;
}

Expand Down

0 comments on commit 05c0211

Please sign in to comment.