Skip to content

Latest commit

 

History

History
60 lines (29 loc) · 856 Bytes

File metadata and controls

60 lines (29 loc) · 856 Bytes

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