mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
856 B
856 B
Home > bitburner > NS > getServerUsedRam
NS.getServerUsedRam() method
Get the used RAM on a server. This includes ram used by running scripts as well as blocked ram on darknet servers.
Signature:
getServerUsedRam(host?: string): number;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
host |
string |
(Optional) Hostname/IP of the target server. Optional. Defaults to current server if not provided. |
Returns:
number
The amount of used RAM (GB) on the specified server.
Remarks
RAM cost: 0.05 GB