From 04dea8d788acfaf485f4aa9ad255e39f6aac2a08 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sat, 20 Aug 2022 03:27:03 +0200 Subject: prettier --- src/stats.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/stats.ts') 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() { ) ); } - } -- cgit 1.5.1