summary refs log tree commit diff
path: root/bundle/src/stats.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-07 23:34:43 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-07 23:34:43 +1000
commite1ebfe79d21930592a7cf937f58a147ddde2b01b (patch)
treeba4a7f3e4b1b8f697694e11bbd7cab460337d53e /bundle/src/stats.ts
parentEnsure password was given if email is given in PATCH @me (diff)
parentFormat changed files (diff)
downloadserver-e1ebfe79d21930592a7cf937f58a147ddde2b01b.tar.xz
Merge branch 'master' into fix/claim_accounts
Diffstat (limited to '')
-rw-r--r--bundle/src/stats.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/bundle/src/stats.ts b/bundle/src/stats.ts

index 3c5163c3..0234e0b4 100644 --- a/bundle/src/stats.ts +++ b/bundle/src/stats.ts
@@ -4,7 +4,13 @@ import { red } from "picocolors"; export function initStats() { console.log(`[Path] running in ${__dirname}`); - console.log(`[CPU] ${osu.cpu.model()} Cores x${osu.cpu.count()}`); + try { + console.log(`[CPU] ${osu.cpu.model()} Cores x${osu.cpu.count()}`); + } + 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) {