hacker.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.

[?]
May 12, 2020, 10:41 PM
ZNH2OJ3CP2SRIGFJATPNLT7HQ5YNNLP4M2ZVO7QN3P3HSTVJJHOAC

Dependencies

  • [2] SXEJJKPI executables: 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.
  • [3] HSNSECD5 all: refactor. main.js: fix call to `void_kill_script_named_server_named`.
  • [4] NQ22FUSW add more options to `main.js`. update `README.md`.
  • [5] DJDWBCCQ add missing "nop.js". killall.js: rename to kill.js. add `--script` and `--server` options.
  • [6] BKG7YVUV main.js, hacker.js, servers.js, ram.js: refactor.
  • [7] ZRPOW4ER hacker.js, lib_time.js: supress error messages. hacker.js: use `getBitNodeMultipliers`. lib_time.js: use `getStats`. README.md: update.
  • [8] 2BKHJI2S init
  • [9] P6ZJC2SH hacker.js: normalise factors used in server scoring function.
  • [*] Y5OWMCQR all: remove unecessary uses of `exec`. refactor. main.js: add RAM reservation logic. lib_ram.js: renamed to lib_ram_server.js. README.js: update.
  • [*] 3NFCZ6IP fixed the ram utilisation logic. added flags to `main.js` that can prevent the execution of helpers.

Change contents

  • edit in sbin/hacker.js at line 2
    [3.42][2.922:1179]()
    * add a function that will make and run a new schedule whilst there is already one running such that the newer schedule continues right after the old one finishes which would circumvent the down time that currently occurs after a schedule finishes running.
  • replacement in sbin/hacker.js at line 22
    [3.1293][3.1293:1354]()
    void_runner(ns, ...array_arguments) + Date.now()),
    [3.1293]
    [3.1354]
    await void_runner(ns, ...array_arguments) + Date.now()),
  • edit in README.md at line 40
    [11.4505]
    [12.7684]
    `-f, --discrete`
    * Run discrete batches instead of continuously. The former mode has downtime but may result in more correctly scheduled jobs compared to the latter.
  • replacement in README.md at line 64
    [3.5243][2.16079:16199]()
    * SECONDS = The duration of delay between each job, in seconds. Should be a floating-point number > 0. Defaults to 1.
    [3.5243]
    [3.5392]
    * SECONDS = The duration of delay between each job, in seconds. Should be a floating-point number > 0. Defaults to 2.