summary refs log tree commit diff
path: root/bundle/src/start.ts
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-07-18 18:30:53 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-09 23:28:27 +0200
commite536fb2f72e4883979b451b60b12c44f5f94313c (patch)
tree9c7fccb12c5aeec560d3c223a3b6e969e8d95cd9 /bundle/src/start.ts
parentUpdate User.ts (diff)
downloadserver-e536fb2f72e4883979b451b60b12c44f5f94313c.tar.xz
replace all var with let (reduces warnings)
Diffstat (limited to 'bundle/src/start.ts')
-rw-r--r--bundle/src/start.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundle/src/start.ts b/bundle/src/start.ts

index de3b5848..a20581c3 100644 --- a/bundle/src/start.ts +++ b/bundle/src/start.ts
@@ -9,7 +9,7 @@ config(); import { execSync } from "child_process"; // TODO: add socket event transmission -var cores = 1; +let cores = 1; try { cores = Number(process.env.THREADS) || os.cpus().length; } catch {