mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-21 05:35:45 +01:00
16 lines
417 B
ReStructuredText
16 lines
417 B
ReStructuredText
|
getServerUsedRam() Netscript Function
|
||
|
=====================================
|
||
|
|
||
|
.. js:function:: getServerUsedRam(hostname)
|
||
|
|
||
|
:RAM cost: 0.05 GB
|
||
|
:param string hostname: Hostname of target server.
|
||
|
:returns: Used ram on that server. In GB.
|
||
|
|
||
|
Example:
|
||
|
|
||
|
.. code-block:: javascript
|
||
|
|
||
|
usedRam = getServerUsedRam("harakiri-sushi"); // returns: 5.6
|
||
|
print("harakiri-sushi uses "+usedRam + "GB");
|