mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
work on doc
This commit is contained in:
31
markdown/bitburner.ns.getscriptram.md
Normal file
31
markdown/bitburner.ns.getscriptram.md
Normal file
@@ -0,0 +1,31 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [getScriptRam](./bitburner.ns.getscriptram.md)
|
||||
|
||||
## NS.getScriptRam() method
|
||||
|
||||
Returns the amount of RAM required to run the specified script on the target server. Returns 0 if the script does not exist.
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
getScriptRam(script: Script, host?: Host): number;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| script | [Script](./bitburner.script.md) | Filename of script. This is case-sensitive. |
|
||||
| host | [Host](./bitburner.host.md) | Host or IP of target server the script is located on. This is optional, If it is not specified then the function will se the current server as the target server. |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
number
|
||||
|
||||
Amount of RAM required to run the specified script on the target server, and 0 if the script does not exist.
|
||||
|
||||
## Remarks
|
||||
|
||||
0.1 GB
|
||||
|
||||
Reference in New Issue
Block a user