Fix wrong function call
This commit is contained in:
parent
f7fa595d71
commit
8dff0b71d6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user