This commit is contained in:
Olivier Gagnon
2021-12-14 15:56:11 -05:00
parent de9fb24156
commit 4d80813707
4 changed files with 6 additions and 5 deletions
+1
View File
@@ -52,6 +52,7 @@ export function runScript(
}
// Check for admin rights and that there is enough RAM availble to run
const script = server.scripts[i];
script.server = player.getCurrentServer().hostname;
const ramUsage = script.ramUsage * numThreads;
const ramAvailable = server.maxRam - server.ramUsed;