mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +01:00
fix some weird eval
This commit is contained in:
parent
1e0e9f7bd7
commit
4fb1dbf2e3
@ -44,7 +44,7 @@ export function resolveNetscriptRequestedThreads(
|
|||||||
`Invalid thread count passed to ${functionName}: ${requestedThreads}. Threads must be a positive number.`,
|
`Invalid thread count passed to ${functionName}: ${requestedThreads}. Threads must be a positive number.`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (requestedThreads > threads) {
|
if (requestedThreadsAsInt > threads) {
|
||||||
throw makeRuntimeRejectMsg(
|
throw makeRuntimeRejectMsg(
|
||||||
workerScript,
|
workerScript,
|
||||||
`Too many threads requested by ${functionName}. Requested: ${requestedThreads}. Has: ${threads}.`,
|
`Too many threads requested by ${functionName}. Requested: ${requestedThreads}. Has: ${threads}.`,
|
||||||
|
Loading…
Reference in New Issue
Block a user