mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 01:33:54 +01:00
06a985bdf8
This reverts commit bbb6e3f309935aebac74ddb1fbeec12dfb7540b1.
31 lines
857 B
Markdown
31 lines
857 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [HacknetServersFormulas](./bitburner.hacknetserversformulas.md) > [hashGainRate](./bitburner.hacknetserversformulas.hashgainrate.md)
|
|
|
|
## HacknetServersFormulas.hashGainRate() method
|
|
|
|
Calculate hash gain rate.
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
hashGainRate(level: number, ramUsed: number, maxRam: number, cores: number, mult?: number): number;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| level | number | level of the server. |
|
|
| ramUsed | number | ramUsed of the server. |
|
|
| maxRam | number | maxRam of the server. |
|
|
| cores | number | cores of the server. |
|
|
| mult | number | player production mult (default to 1) |
|
|
|
|
<b>Returns:</b>
|
|
|
|
number
|
|
|
|
The calculated hash gain rate.
|
|
|