mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-26 19:14:32 +02:00
Added RAM usage calculations for wget() Netscript fn
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user