mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-10 05:27:00 +03:00
Add hostname to status
This commit is contained in:
@@ -23,7 +23,8 @@ export async function getStatus(req: Request, res: Response): Promise<Response>
|
||||
startTime,
|
||||
processTime: Date.now() - startTime,
|
||||
loadavg: os.loadavg().slice(1), // only return 5 & 15 minute load average
|
||||
statusRequests
|
||||
statusRequests,
|
||||
hostname: os.hostname()
|
||||
};
|
||||
return value ? res.send(JSON.stringify(statusValues[value])) : res.send(statusValues);
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user