Fix logic error

This commit is contained in:
Isaac Shoebottom 2023-11-03 22:21:54 -03:00
parent 8dff0b71d6
commit 5febd7ed3b

View File

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