Fix logic error
This commit is contained in:
parent
8dff0b71d6
commit
5febd7ed3b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user