hacker.js: add logic to copy job script to server.
[?]
Sep 7, 2020, 7:59 AM
PUMDUVMZOIZW5AREIFGE6ONJSN6AYTOYMM3IVKIFWUBEUHKBG3LACDependencies
- [2]
JS52JD4Qweaken_manager.js: add. lib_server_used.js: move to lib_ram_script. lib_ps: delete. main.js, hacker.js, lib_ram_script.js: refactor. README.md: update. - [3]
2BKHJI2Sinit - [4]
2WOLGB42README.md: update. kill.js: fix argument parser. lshw.js: add `-p` option. increase information given. main.js: fix error message. set saner defaults. hacker.js: split some functions into "lib_time.js" and "lib_score.js". ram.js: fix. - [5]
BKG7YVUVmain.js, hacker.js, servers.js, ram.js: refactor. - [6]
SXEJJKPIexecutables: add `--help` flag. hacker.js: change scheduling logic. refactor. kill.js: allow handling more than one server or script at a time. cyclic_weaken.js: add. README.md: update. - [7]
ZNH2OJ3Chacker.js, main.js: added continuous scheduling mode. README.md: update. credits to Mei for helping me figure out how to time the continuous mode and to Kozd for making `sort_by` work with methods. - [8]
ZRPOW4ERhacker.js, lib_time.js: supress error messages. hacker.js: use `getBitNodeMultipliers`. lib_time.js: use `getStats`. README.md: update. - [9]
JGNALSUQadd "cyclic_weaken.js" feature. hacker.js, main.js, libs: refactor. README.md: update. - [10]
P6ZJC2SHhacker.js: normalise factors used in server scoring function.
Change contents
- replacement in sbin/hacker.js at line 1
/* hacker.js - 12.75GB - TODO:/* hacker.js - 13.35GB - TODO: - edit in sbin/hacker.js at line 885
// copies script in current server to a target serverconst void_copy_script_to = function (ns, string_script, string_server_used) {ns.scp(string_script,ns.getHostname(),string_server_used);} - edit in sbin/hacker.js at line 906
void_copy_script_to(ns,object_job.string_script,object_job.string_server_used);