Skip to content

Infinite loop when when initially low money on the server #7

@karolmie1

Description

@karolmie1
	while (ns.weakenAnalyze(weaken_threads) < sec_increase * 1.1) {
		weaken_threads += 5;
		await ns.sleep(1);
	}

Script breaks down there when sec_increase equals infinity.

 let hack_threads = ns.hackAnalyzeThreads(hack_target, ns.getServerMoneyAvailable(hack_target) / 2);

Problem is that hack threads for me equals infinity for server global-pharm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions