mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 00:37:29 -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 = {
|
||||
name: system.name,
|
||||
description: system.description,
|
||||
active: system.active,
|
||||
lastActive: system.lastActive,
|
||||
clientCount: system.clientCount,
|
||||
callAvg: system.callAvg,
|
||||
requestTime: Date.now()
|
||||
}
|
||||
res.contentType('json');
|
||||
res.send(JSON.stringify(response));
|
||||
|
||||
Reference in New Issue
Block a user