summary refs log tree commit diff
path: root/bundle
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-17 20:37:13 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-17 20:37:13 +0200
commit65157aac9c3494ae13025a0f546ceb00b23f9426 (patch)
tree9c7d94abce30a0efbe89b13ef588642867a56055 /bundle
parent:bug: fix login route (diff)
downloadserver-65157aac9c3494ae13025a0f546ceb00b23f9426.tar.xz
:loud_sound: verbose error handler
Diffstat (limited to 'bundle')
-rw-r--r--bundle/package-lock.json5
-rw-r--r--bundle/src/stats.ts5
2 files changed, 4 insertions, 6 deletions
diff --git a/bundle/package-lock.json b/bundle/package-lock.json
index 354487be..379b1c18 100644
--- a/bundle/package-lock.json
+++ b/bundle/package-lock.json
@@ -42,7 +42,6 @@
 		"../api": {
 			"name": "@fosscord/api",
 			"version": "1.0.0",
-			"hasInstallScript": true,
 			"license": "ISC",
 			"dependencies": {
 				"@fosscord/util": "file:../util",
@@ -99,7 +98,6 @@
 		"../cdn": {
 			"name": "@fosscord/cdn",
 			"version": "1.0.0",
-			"hasInstallScript": true,
 			"license": "ISC",
 			"dependencies": {
 				"@fosscord/util": "file:../util",
@@ -141,7 +139,6 @@
 		"../gateway": {
 			"name": "@fosscord/gateway",
 			"version": "1.0.0",
-			"hasInstallScript": true,
 			"license": "ISC",
 			"dependencies": {
 				"@fosscord/util": "file:../util",
@@ -172,7 +169,7 @@
 		},
 		"../util": {
 			"name": "@fosscord/util",
-			"version": "1.3.55",
+			"version": "1.0.0",
 			"hasInstallScript": true,
 			"license": "GPLV3",
 			"dependencies": {
diff --git a/bundle/src/stats.ts b/bundle/src/stats.ts
index 0a10a855..6413f347 100644
--- a/bundle/src/stats.ts
+++ b/bundle/src/stats.ts
@@ -9,14 +9,15 @@ export function initStats() {
 
 	setInterval(async () => {
 		const [cpuUsed, memory, network] = await Promise.all([osu.cpu.usage(), osu.mem.info(), osu.netstat.inOut()]);
+		var networkUsage = "";
 		if (typeof network === "object") {
-			console.log(`[Network]: in ${network.total.inputMb}mb | out ${network.total.outputMb}mb`);
+			networkUsage = `| [Network]: in ${network.total.inputMb}mb | out ${network.total.outputMb}mb`;
 		}
 
 		console.log(
 			`[CPU] ${cpuUsed.toFixed(2)}% | [Memory] ${Math.round(
 				process.memoryUsage().rss / 1024 / 1024
-			)}mb/${memory.totalMemMb.toFixed(0)}mb`
+			)}mb/${memory.totalMemMb.toFixed(0)}mb ${networkUsage}`
 		);
 	}, 1000 * 30);
 }