Fix wrong function call

This commit is contained in:
Isaac Shoebottom 2023-11-03 22:20:50 -03:00
parent f7fa595d71
commit 8dff0b71d6

View File

@ -90,7 +90,7 @@ export function rootServer(ns: NS, server: string) {
ns.sqlinject(server)
counter++
}
if (ns.getServer(server).openPortCount <= counter) {
if (counter <= ns.getServerNumPortsRequired(server)) {
ns.nuke(server)
}
return counter