DOC: Typo in ns2 migration doc (#1528)

This commit is contained in:
Michael Taylor 2024-07-31 16:41:54 -03:00 committed by GitHub
parent 4d57d636af
commit 0ceb478e32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -61,11 +61,11 @@ export async function main(ns) {
const moneyThresh = ns.getServerMaxMoney(target) * 0.9;
const securityThresh = ns.getServerMinSecurityLevel(target) + 5;
while(true) {
while (true) {
if (ns.getServerSecurityLevel(target) > securityThresh) {
await ns.weaken(target);
} else if (ns.getServerMoneyAvailable(target) < moneyThresh) {
await ns.grow(target):
await ns.grow(target);
} else {
await ns.hack(target);
}