Fix hackAnalyzeThreads again

But actually this time
This commit is contained in:
Snarling 2023-03-26 02:56:01 -04:00 committed by GitHub
parent 3c18fd7a51
commit dadf42bfe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -176,7 +176,7 @@ export const ns: InternalAPI<NSFull> = {
return 0; // To prevent returning infinity below return 0; // To prevent returning infinity below
} }
return (hackAmount / server.moneyAvailable) * percentHacked; return hackAmount / (server.moneyAvailable * percentHacked);
}, },
hackAnalyze: (ctx) => (_hostname) => { hackAnalyze: (ctx) => (_hostname) => {
const hostname = helpers.string(ctx, "hostname", _hostname); const hostname = helpers.string(ctx, "hostname", _hostname);