mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 14:59:16 +02:00
63 lines
1.1 KiB
Markdown
63 lines
1.1 KiB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Darknet](./bitburner.darknet.md) > [memoryReallocation](./bitburner.darknet.memoryreallocation.md)
|
|
|
|
## Darknet.memoryReallocation() method
|
|
|
|
Spends some time freeing some of the RAM currently blocked by the server owner. Must target an authenticated and directly connected server.
|
|
|
|
The amount of ram recovered scales with charisma and the number of threads used.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
memoryReallocation(host?: string): Promise<DarknetResult>;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
<table><thead><tr><th>
|
|
|
|
Parameter
|
|
|
|
|
|
</th><th>
|
|
|
|
Type
|
|
|
|
|
|
</th><th>
|
|
|
|
Description
|
|
|
|
|
|
</th></tr></thead>
|
|
<tbody><tr><td>
|
|
|
|
host
|
|
|
|
|
|
</td><td>
|
|
|
|
string
|
|
|
|
|
|
</td><td>
|
|
|
|
_(Optional)_ Optional. Hostname/IP of the authenticated and directly connected server to free ram from. Defaults to the running script's server.
|
|
|
|
|
|
</td></tr>
|
|
</tbody></table>
|
|
|
|
**Returns:**
|
|
|
|
Promise<[DarknetResult](./bitburner.darknetresult.md)<!-- -->>
|
|
|
|
A promise that resolves to a [DarknetResult](./bitburner.darknetresult.md) object.
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 1 GB
|
|
|