From f5e81a8bcd2eda2c5c1683a83340bdc99034a8ea Mon Sep 17 00:00:00 2001 From: Mughur Date: Thu, 29 Dec 2022 09:01:13 +0200 Subject: [PATCH] SCP update --- deploy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.js b/deploy.js index cfc30b6..39ca0df 100644 --- a/deploy.js +++ b/deploy.js @@ -24,6 +24,6 @@ export async function main(ns) { const threads = Math.floor((ns.getServerMaxRam(host) - ns.getServerUsedRam(host)) / ns.getScriptRam(script)); ns.tprint(`Launching script '${script}' on server '${host}' with ${threads} threads and the following arguments: ${script_args}`); - await ns.scp(script, ns.getHostname(), host); + await ns.scp(script, host, ns.getHostname()); ns.exec(script, host, threads, ...script_args); }