mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 21:25:47 +01:00
fix growthAnalyzeSecurity
This commit is contained in:
parent
a8b1aebfae
commit
17be0911b2
@ -311,7 +311,7 @@ const base: InternalAPI<NS> = {
|
||||
(_threads: unknown, _hostname?: unknown, _cores?: unknown): number => {
|
||||
let threads = helpers.number(ctx, "threads", _threads);
|
||||
if (_hostname) {
|
||||
const cores = helpers.number(ctx, "cores", _cores) || 1;
|
||||
const cores = _cores ? helpers.number(ctx, "cores", _cores) : 1;
|
||||
const hostname = helpers.string(ctx, "hostname", _hostname);
|
||||
const server = helpers.getServer(ctx, hostname);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user