mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 14:28:36 +02:00
1.1 KiB
1.1 KiB
Home > bitburner > NS > getScriptRam
NS.getScriptRam() method
Get the ram cost of a script.
Signature:
getScriptRam(script: string, host?: string): number;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
script |
string |
Filename of script. This is case-sensitive. |
|
host |
string |
(Optional) Hostname/IP of the server the target script is located on. Optional. Defaults to the server the calling script is running on. |
Returns:
number
Amount of RAM (in GB) required to run the specified script, and 0 if the script does not exist.
Remarks
RAM cost: 0.1 GB
Returns the amount of RAM required to run the specified script on the target server. Returns 0 if the script does not exist.