diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 4ededfe6..16f2f173 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -141,7 +141,7 @@
-
+
diff --git a/package-lock.json b/package-lock.json
index 0d38ddc4..3157cb8d 100644
Binary files a/package-lock.json and b/package-lock.json differ
diff --git a/package.json b/package.json
index 7b16c18f..6f8325ff 100644
--- a/package.json
+++ b/package.json
@@ -56,7 +56,6 @@
"@types/murmurhash-js": "^1.0.6",
"@types/node": "^24.7.2",
"@types/node-fetch": "^2.6.13",
- "@types/node-os-utils": "^1.3.4",
"@types/nodemailer": "^7.0.2",
"@types/probe-image-size": "^7.2.5",
"@types/sharp": "^0.31.1",
@@ -103,7 +102,6 @@
"murmurhash-js": "^1.0.0",
"node-2fa": "^2.0.3",
"node-fetch-commonjs": "^3.3.2",
- "node-os-utils": "^1.3.7",
"picocolors": "^1.1.1",
"probe-image-size": "^7.2.3",
"proxy-agent": "^6.5.0",
diff --git a/src/bundle/stats.ts b/src/bundle/stats.ts
index 92e46027..1af7144e 100644
--- a/src/bundle/stats.ts
+++ b/src/bundle/stats.ts
@@ -17,7 +17,6 @@
*/
import os from "os";
-import osu from "node-os-utils";
import { readFileSync } from "node:fs";
import { red } from "picocolors";
@@ -25,7 +24,7 @@ export function initStats() {
console.log(`[Path] Running in ${process.cwd()}`);
console.log(`[Path] Running from ${__dirname}`);
try {
- console.log(`[CPU] ${osu.cpu.model()} (x${osu.cpu.count()})`);
+ console.log(`[CPU] ${os.cpus()[0].model} (x${os.cpus().length})`);
} catch {
console.log("[CPU] Failed to get CPU model!");
}
@@ -64,24 +63,4 @@ export function initStats() {
),
);
}
-
- // TODO: node-os-utils might have a memory leak, more investigation needed
- // TODO: doesn't work if spawned with multiple threads
- // setInterval(async () => {
- // const [cpuUsed, memory, network] = await Promise.all([
- // osu.cpu.usage(),
- // osu.mem.info(),
- // osu.netstat.inOut(),
- // ]);
- // var networkUsage = "";
- // if (typeof network === "object") {
- // networkUsage = `| [Network]: in ${network.total.inputMb}mb | out ${network.total.outputMb}mb`;
- // }
-
- // console.log(
- // `[CPU] ${cpuUsed.toPrecision(3)}% | [Memory] ${Math.round(
- // process.memoryUsage().rss / 1024 / 1024
- // )}mb/${memory.totalMemMb.toFixed(0)}mb ${networkUsage}`
- // );
- // }, 1000 * 60 * 5);
}