From 05c0211fcdfd9d21b6f508a3acefb61761b564e0 Mon Sep 17 00:00:00 2001 From: miketwc1984 Date: Sat, 23 Mar 2024 14:52:45 -0400 Subject: [PATCH] add storage info on server tab --- lib/comm.js | 6 ++++-- lib/engine.js | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/comm.js b/lib/comm.js index dcd83c6..4c1fd33 100644 --- a/lib/comm.js +++ b/lib/comm.js @@ -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 @@ -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 diff --git a/lib/engine.js b/lib/engine.js index 526c298..7c5c267 100644 --- a/lib/engine.js +++ b/lib/engine.js @@ -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; }