plenty of bf

This commit is contained in:
Olivier Gagnon
2021-11-15 23:49:33 -05:00
parent ded230eaaf
commit ef781a0627
15 changed files with 213 additions and 115 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[] = [];
@@ -490,7 +491,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();