Added RAM usage calculations for wget() Netscript fn

This commit is contained in:
danielyxie
2018-09-27 17:08:51 -05:00
parent 427cdb48ba
commit 44ce4bc674
3 changed files with 11 additions and 0 deletions
+6
View File
@@ -517,6 +517,12 @@ function parseOnlyRamCalculate(server, code, workerScript) {
function applyFuncRam(func) {
if (typeof func === "function") {
try {
let res;
if (func instance of (async () => {}).constructor) {
} else {
}
let res = func.apply(null, []);
if (typeof res === "number") {
return res;