summary refs log tree commit diff
path: root/src/stats.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-25 12:55:42 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-25 13:00:31 +1000
commitd946547a9233d866e793e1c68f11d98cb2f7d390 (patch)
tree2ff2677432e2e874f0784b115202f3846e68deb0 /src/stats.ts
parentMerge remote-tracking branch 'upstream/staging' into fix/categoryNames (diff)
parentMerge pull request #799 from MaddyUnderStars/feat/captchaVerify (diff)
downloadserver-d946547a9233d866e793e1c68f11d98cb2f7d390.tar.xz
Merge remote-tracking branch 'upstream/staging' into fix/categoryNames
Also allow voice to skip checks
Diffstat (limited to 'src/stats.ts')
-rw-r--r--src/stats.ts9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/stats.ts b/src/stats.ts
index 654e0a4f..05f0ab77 100644
--- a/src/stats.ts
+++ b/src/stats.ts
@@ -2,15 +2,13 @@ import os from "os";
 import { red } from "picocolors";
 
 export function initStats() {
-	
 	console.log(`[Path] running in ${__dirname}`);
 	try {
 		console.log(`[CPU] ${os.cpus()[0].model} Cores x${os.cpus().length}`);
+	} catch {
+		console.log("[CPU] Failed to get cpu model!");
 	}
-	catch {
-		console.log('[CPU] Failed to get cpu model!')
-	}
-	
+
 	console.log(`[System] ${os.platform()} ${os.arch()}`);
 	console.log(`[Process] running with PID: ${process.pid}`);
 	if (process.getuid && process.getuid() === 0) {
@@ -20,5 +18,4 @@ export function initStats() {
 			)
 		);
 	}
-
 }