mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-25 23:47:34 +01:00
Only mention number of threads if != 1
Fixes confusion mentioned here: https://discord.com/channels/415207508303544321/921120989000114257/971233305020231722
This commit is contained in:
parent
99a0337a14
commit
fe1dd11269
@ -65,11 +65,9 @@ export function runScript(
|
|||||||
|
|
||||||
if (ramUsage > ramAvailable + 0.001) {
|
if (ramUsage > ramAvailable + 0.001) {
|
||||||
terminal.error(
|
terminal.error(
|
||||||
"This machine does not have enough RAM to run this script with " +
|
"This machine does not have enough RAM to run this script" +
|
||||||
numThreads +
|
(numThreads === 1 ? "" : ` with ${numThreads} threads`) +
|
||||||
" threads. Script requires " +
|
`. Script requires ${numeralWrapper.formatRAM(ramUsage)} of RAM`,
|
||||||
numeralWrapper.formatRAM(ramUsage) +
|
|
||||||
" of RAM",
|
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user