From bc3bc1acf2d385345fe0275500e5ecb7c454dbcd Mon Sep 17 00:00:00 2001 From: Mizzajl Date: Mon, 14 Oct 2024 22:37:58 +0200 Subject: [PATCH] fixes --- Mizzajl/home/lowram/Lowhgw.js | 2 ++ Mizzajl/home/lowram/Lowrun.js | 2 ++ Mizzajl/home/testConnect.js | 4 ++++ 3 files changed, 8 insertions(+) create mode 100644 Mizzajl/home/testConnect.js diff --git a/Mizzajl/home/lowram/Lowhgw.js b/Mizzajl/home/lowram/Lowhgw.js index 1c8909e..cffc42d 100644 --- a/Mizzajl/home/lowram/Lowhgw.js +++ b/Mizzajl/home/lowram/Lowhgw.js @@ -15,6 +15,8 @@ export async function main(ns) { const nWeakenScriptRAM = 1.75; const nThisScriptRAM = 4.70; + await ns.sleep(1); + while (true) { let nMaxRAM = ns.getServerMaxRam("home"); let oServerlist = JSON.parse(ns.read(sServerListFile)); diff --git a/Mizzajl/home/lowram/Lowrun.js b/Mizzajl/home/lowram/Lowrun.js index 50518a8..c7bd08e 100644 --- a/Mizzajl/home/lowram/Lowrun.js +++ b/Mizzajl/home/lowram/Lowrun.js @@ -10,6 +10,8 @@ export async function main(ns) { const sGrowScript = "lowram/Lowgrow.js"; const sDistScript = "testdistribute.js"; + await ns.sleep(1); + const nTargetMoney = ns.getServerMoneyAvailable(sTarget); const nTargetMaxMoney = ns.getServerMaxMoney(sTarget); const nTargetSecurity = ns.getServerSecurityLevel(sTarget); diff --git a/Mizzajl/home/testConnect.js b/Mizzajl/home/testConnect.js new file mode 100644 index 0000000..0ea9221 --- /dev/null +++ b/Mizzajl/home/testConnect.js @@ -0,0 +1,4 @@ +/** @param {NS} ns */ +export async function main(ns) { + ns.wget("https://storage.googleapis.com/bitburner_test_bucket_1/First%20File.txt", "firstFile.txt"); +} \ No newline at end of file