mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 00:32:51 +02:00
28 lines
866 B
Markdown
28 lines
866 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [ReputationFormulas](./bitburner.reputationformulas.md) > [sharePower](./bitburner.reputationformulas.sharepower.md)
|
|
|
|
## ReputationFormulas.sharePower() method
|
|
|
|
Calculate the share power if you call [ns.share](./bitburner.ns.share.md) with the specified number of threads on a server having the specified number of CPU cores.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
sharePower(threads: number, cpuCores?: number): number;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| threads | number | Number of threads. Must be a positive integer. |
|
|
| cpuCores | number | _(Optional)_ Number of CPU cores. Must be a positive integer. The default value is 1. |
|
|
|
|
**Returns:**
|
|
|
|
number
|
|
|
|
The calculated share power.
|
|
|