summary refs log tree commit diff
path: root/src/api/routes/-
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-26 22:29:30 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-26 22:41:21 +1000
commit99ee7e9400f06e8718612d8b52d15215dc620774 (patch)
tree08de8c5d3985b9c2eaa419f5198f891ecd82d012 /src/api/routes/-
parentRemove the cdn storage location log (diff)
downloadserver-99ee7e9400f06e8718612d8b52d15215dc620774.tar.xz
Prettier
Diffstat (limited to 'src/api/routes/-')
-rw-r--r--src/api/routes/-/monitorz.ts24
1 files changed, 14 insertions, 10 deletions
diff --git a/src/api/routes/-/monitorz.ts b/src/api/routes/-/monitorz.ts
index f85cd099..630a832b 100644
--- a/src/api/routes/-/monitorz.ts
+++ b/src/api/routes/-/monitorz.ts
@@ -5,14 +5,18 @@ import os from "os";
 
 const router = Router();
 
-router.get("/", route({ right: "OPERATOR" }), async (req: Request, res: Response) => {
-	return res.json({
-		load: os.loadavg(),
-		procUptime: process.uptime(),
-		sysUptime: os.uptime(),
-		memPercent: 100 - ((os.freemem() / os.totalmem()) * 100),
-		sessions: await Session.count(),
-	})
-})
+router.get(
+	"/",
+	route({ right: "OPERATOR" }),
+	async (req: Request, res: Response) => {
+		return res.json({
+			load: os.loadavg(),
+			procUptime: process.uptime(),
+			sysUptime: os.uptime(),
+			memPercent: 100 - (os.freemem() / os.totalmem()) * 100,
+			sessions: await Session.count(),
+		});
+	},
+);
 
-export default router;
\ No newline at end of file
+export default router;