diff options
-rw-r--r-- | api/src/routes/-/monitorz.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/src/routes/-/monitorz.ts b/api/src/routes/-/monitorz.ts index a8f2e3c3..f85cd099 100644 --- a/api/src/routes/-/monitorz.ts +++ b/api/src/routes/-/monitorz.ts @@ -1,5 +1,6 @@ import { Router, Response, Request } from "express"; import { route } from "@fosscord/api"; +import { Session } from "@fosscord/util"; import os from "os"; const router = Router(); @@ -10,6 +11,7 @@ router.get("/", route({ right: "OPERATOR" }), async (req: Request, res: Response procUptime: process.uptime(), sysUptime: os.uptime(), memPercent: 100 - ((os.freemem() / os.totalmem()) * 100), + sessions: await Session.count(), }) }) |