diff --git a/src/NetscriptFunctions.ts b/src/NetscriptFunctions.ts index c1e55f471..ce1fc8c6b 100644 --- a/src/NetscriptFunctions.ts +++ b/src/NetscriptFunctions.ts @@ -1524,7 +1524,7 @@ export const ns: InternalAPI = { return rs.ramUsage; } const newServerRamUsed = roundToTwo(server.ramUsed + (newRam - rs.ramUsage) * rs.threads); - if (newServerRamUsed >= server.maxRam) { + if (newServerRamUsed > server.maxRam) { // Can't allocate more RAM. return rs.ramUsage; }