getScriptRam() Netscript Function

getScriptRam(filename[, hostname])
RAM cost:

0.1 GB

Arguments:
  • filename (string) – Filename of script.
  • hostname (string) – Hostname of target server the script is located on. Default to the server this script is running on.
Returns:

Amount of RAM required to run the script, 0 if it does not exist.

Example:

getScriptRam("grow.script"); // returns: 1.75