summaryrefslogtreecommitdiff
path: root/bitburnerFiles1026/run.js
diff options
context:
space:
mode:
authorAlmightyMiau <almightymeow612@gmail.com>2024-11-13 10:56:53 -0800
committerAlmightyMiau <almightymeow612@gmail.com>2024-11-13 10:56:53 -0800
commit40843e35434d56e883655e4377994ac76746b184 (patch)
tree786c3acc109b4add11c88ca58a534fd19d4e77cb /bitburnerFiles1026/run.js
parent1ca00b3b73a9699e41f81e154cea32934c16de03 (diff)
Organized scripts into folders
Diffstat (limited to 'bitburnerFiles1026/run.js')
-rw-r--r--bitburnerFiles1026/run.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/bitburnerFiles1026/run.js b/bitburnerFiles1026/run.js
deleted file mode 100644
index 31c70cd..0000000
--- a/bitburnerFiles1026/run.js
+++ /dev/null
@@ -1,12 +0,0 @@
-/** @param {NS} ns */
-export async function main(ns) {
- const target = ns.args[0];
- const script = ns.args[1];
- const scriptRam = ns.getScriptRam(script);
- ns.exec(script, "home", threads(ns, scriptRam), target);
- await ns.sleep(4000);
-}
-
-function threads(ns, scriptRam) {
- return Math.floor(((ns.getServerMaxRam("home") - ns.getServerUsedRam("home")) * 0.95) / scriptRam);
-} \ No newline at end of file