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 00:44:13 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-25 00:44:13 +1000
commit314a4787ce55a091cb89ef4281d7ba09e8323fa4 (patch)
treed77142c009e9c6d45390a8fe01c9aee966d7a4cc /src/stats.ts
parentMerge remote-tracking branch 'upstream/staging' into feat/captchaVerify (diff)
parentcase insensitive header for rate limits, fix rate limit default settings (diff)
downloadserver-ts-314a4787ce55a091cb89ef4281d7ba09e8323fa4.tar.xz
Merge remote-tracking branch 'upstream/staging' into feat/captchaVerify
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() { ) ); } - }