diff --git a/Mizzajl/home/EveryServerRun.js b/Mizzajl/home/EveryServerRun.js index 143ab09..455cff7 100644 --- a/Mizzajl/home/EveryServerRun.js +++ b/Mizzajl/home/EveryServerRun.js @@ -1,4 +1,4 @@ -import { getGrowThreads } from "myLibrary.js"; +import { getGrowThreads, getSetting } from "myLibrary.js"; /** @param {NS} ns */ export async function main(ns) { @@ -31,7 +31,8 @@ export async function main(ns) { const nGrowScriptRAM = 1.7 * nGrowThreads; //ns.tprint("nGrowScriptRAM = " + nGrowScriptRAM); - const nFrequency = 50; + //const nFrequency = 50; + const nFrequency = getSetting("batchFrequency"); let nScriptsRAM; let nMaxRam; let nScripts; diff --git a/Mizzajl/home/batch.js b/Mizzajl/home/batch.js index 9f8c586..1728c89 100644 --- a/Mizzajl/home/batch.js +++ b/Mizzajl/home/batch.js @@ -1,4 +1,4 @@ -import { getGrowThreads } from "myLibrary.js"; +import { getGrowThreads, getSetting } from "myLibrary.js"; /** @param {NS} ns */ export async function main(ns) { @@ -22,7 +22,8 @@ export async function main(ns) { const sGrowScript = "RMgrow.js"; const sWeakenScript = "RMweaken.js"; - const nHackThreads = 50; //1 + //const nHackThreads = 50; //1 + const nHackThreads = getSetting("batchHacks"); //1 const nHackScriptRAM = 1.75; const nGrowScriptRAM = 1.7; diff --git a/Mizzajl/home/settings.txt b/Mizzajl/home/settings.txt index 95d0f21..7e0d1f8 100644 --- a/Mizzajl/home/settings.txt +++ b/Mizzajl/home/settings.txt @@ -1,4 +1,6 @@ {"setting":{ "autoUpgrades":true, -"autoPurchaseServers":true +"autoPurchaseServers":true, +"batchHacks":50, +"batchFrequency":1000 }} \ No newline at end of file