mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-21 05:35:45 +01:00
17 lines
528 B
ReStructuredText
17 lines
528 B
ReStructuredText
getScriptRam() Netscript Function
|
|
=================================
|
|
|
|
.. js:function:: getScriptRam(filename[, hostname = current hostname])
|
|
|
|
:RAM cost: 0.1 GB
|
|
:param string filename: Filename of script.
|
|
:param string hostname: 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:
|
|
|
|
.. code-block:: javascript
|
|
|
|
ns.getScriptRam("grow.js"); // returns: 1.75
|