2021-11-04 01:19:52 +01:00
|
|
|
<!-- 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
|
|
|
|
|
2021-12-09 01:19:07 +01:00
|
|
|
Calculate hash gain rate.
|
|
|
|
|
2021-11-04 01:19:52 +01:00
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
hashGainRate(level: number, ramUsed: number, maxRam: number, cores: number, mult?: number): number;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2021-12-09 01:19:07 +01:00
|
|
|
| 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) |
|
2021-11-04 01:19:52 +01:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
number
|
|
|
|
|
2021-12-09 01:19:07 +01:00
|
|
|
The calculated hash gain rate.
|
|
|
|
|