summary refs log tree commit diff
path: root/src/stats.ts
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-23 19:02:05 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-23 19:02:05 +0200
commitba0ba4b61ede1404454b8ab89bd9da61851f8a6e (patch)
tree254cf1238adea372014b55555e22db6637683d72 /src/stats.ts
parentMerge remote-tracking branch 'Puyodead1/patch/prettier-config' into staging (diff)
parentNew db migration script - multiplatform, fix mariadb migrations (diff)
downloadserver-ba0ba4b61ede1404454b8ab89bd9da61851f8a6e.tar.xz
Merge branch 'dev/cherry-plugins-improvements' into staging
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() {
 			)
 		);
 	}
-
 }