This commit is contained in:
2024-10-13 23:22:09 +02:00
parent 24c6fad825
commit fc25418810
2 changed files with 5 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ export async function main(ns) {
// run remaining hacks on smallest to biggest core servers
aSortedList.forEach((entry) => {
if (entry.rootAccess && entry.maxRam >= 1 && entry.serverCores > 1) {
if (entry.rootAccess && ns.getServerMaxRam() >= ns.getScriptRam(sScript, "home")) {
let sHost = entry.serverName;
ns.exec(sScript, sHost, nThreads, sTarget, bRepeat, nMsecDelay);