convert BN13 to a more conventional one.

This commit is contained in:
Olivier Gagnon
2021-11-18 15:38:19 -05:00
266 changed files with 478 additions and 5178 deletions
+3 -1
View File
@@ -33,6 +33,7 @@ import { sprintf } from "sprintf-js";
import { parse } from "acorn";
import { simple as walksimple } from "acorn-walk";
import { areFilesEqual } from "./Terminal/DirectoryHelpers";
import { Player } from "./Player";
// Netscript Ports are instantiated here
export const NetscriptPorts: IPort[] = [];
@@ -491,7 +492,8 @@ function createAndAddWorkerScript(runningScriptObj: RunningScript, server: BaseS
);
return false;
}
server.ramUsed = roundToTwo(server.ramUsed + ramUsage);
server.updateRamUsed(roundToTwo(server.ramUsed + ramUsage), Player);
// Get the pid
const pid = generateNextPid();