mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-31 20:15:48 +00:00
🚧 different db engines
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
import cluster from "cluster";
|
||||
import os from "os";
|
||||
import { initStats } from "./stats";
|
||||
import { config } from "dotenv";
|
||||
config();
|
||||
|
||||
// TODO: add tcp socket event transmission
|
||||
const cores = 1 || Number(process.env.threads) || os.cpus().length;
|
||||
|
||||
@@ -5,7 +5,6 @@ export function initStats() {
|
||||
console.log(`[Path] running in ${__dirname}`);
|
||||
console.log(`[CPU] ${osu.cpu.model()} Cores x${osu.cpu.count()}`);
|
||||
console.log(`[System] ${os.platform()} ${os.arch()}`);
|
||||
console.log(`[Database] started`);
|
||||
console.log(`[Process] running with pid: ${process.pid}`);
|
||||
|
||||
setInterval(async () => {
|
||||
|
||||
Reference in New Issue
Block a user