mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
Revert "Remove markdown from git tracking (#139)"
This reverts commit bbb6e3f309.
This commit is contained in:
33
markdown/bitburner.ns.getscriptram.md
Normal file
33
markdown/bitburner.ns.getscriptram.md
Normal file
@@ -0,0 +1,33 @@
|
||||
<!-- 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
|
||||
|
||||
Get the ram cost of a script.
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
getScriptRam(script: string, host?: string): number;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| script | string | Filename of script. This is case-sensitive. |
|
||||
| host | string | Host of target server the script is located on. This is optional, if it is not specified then the function will use the current server as the target server. |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
number
|
||||
|
||||
Amount of RAM (in GB) required to run the specified script on the target server, and 0 if the script does not exist.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0.1 GB
|
||||
|
||||
Returns the amount of RAM required to run the specified script on the target server. Returns 0 if the script does not exist.
|
||||
|
||||
Reference in New Issue
Block a user