BUGFIX: Fix ramOverride check (#1787)

ramOverride currently prevents you from actually using exactly all of a server's memory due to a bug in the ram check. Simply replace ">=" with ">" to allow the new ram to equal the max ram.

Test script:
```js
/** @param {NS} ns */
export async function main(ns) {
  ns.tprint(ns.ramOverride(8));
}
```
Expected output (on fresh save):
```js
8
```
Output before this commit:
```js
1.6
```
This commit is contained in:
Jon Hartnett 2024-11-20 14:47:55 -06:00 committed by GitHub
parent 04611a30b6
commit 99aeecbd0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1524,7 +1524,7 @@ export const ns: InternalAPI<NSFull> = {
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;
}