mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-13 17:27:37 -05:00
include the current time in the status request
This commit is contained in:
@@ -154,10 +154,13 @@ exports.get_system_status = async function (req, res) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
var response = {
|
var response = {
|
||||||
|
name: system.name,
|
||||||
|
description: system.description,
|
||||||
active: system.active,
|
active: system.active,
|
||||||
lastActive: system.lastActive,
|
lastActive: system.lastActive,
|
||||||
clientCount: system.clientCount,
|
clientCount: system.clientCount,
|
||||||
callAvg: system.callAvg,
|
callAvg: system.callAvg,
|
||||||
|
requestTime: Date.now()
|
||||||
}
|
}
|
||||||
res.contentType('json');
|
res.contentType('json');
|
||||||
res.send(JSON.stringify(response));
|
res.send(JSON.stringify(response));
|
||||||
|
|||||||
Reference in New Issue
Block a user