Home > bitburner > ReputationFormulas > sharePower
Calculate the share power if you call ns.share with the specified number of threads on a server having the specified number of CPU cores.
Signature:
sharePower(threads: number, cpuCores?: number): number;|
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.