Merge pull request #3425 from Chris380/bugfix/3111_growthAnalyzeSecurity_thread_limit

Bugfix/3111 growthAnalyzeSecurity thread limit
This commit is contained in:
hydroflame
2022-04-13 11:26:22 -04:00
committed by GitHub
2 changed files with 24 additions and 4 deletions

View File

@@ -4647,9 +4647,11 @@ export interface NS {
* Returns the security increase that would occur if a grow with this many threads happened.
*
* @param threads - Amount of threads that will be used.
* @param hostname - Optional. Hostname of the target server. The number of threads is limited to the number needed to hack the servers maximum amount of money.
* @param cores - Optional. The number of cores of the server that would run grow.
* @returns The security increase.
*/
growthAnalyzeSecurity(threads: number): number;
growthAnalyzeSecurity(threads: number, hostname?: string, cores?: number): number;
/**
* Suspends the script for n milliseconds.