mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
Multiply ram cost by threads
This commit is contained in:
parent
b345da9dee
commit
4fad90ed4d
@ -41,7 +41,7 @@ export function mem(
|
|||||||
|
|
||||||
const verboseEntries = script.ramUsageEntries?.sort((a, b) => b.cost - a.cost) ?? [];
|
const verboseEntries = script.ramUsageEntries?.sort((a, b) => b.cost - a.cost) ?? [];
|
||||||
for (const entry of verboseEntries) {
|
for (const entry of verboseEntries) {
|
||||||
terminal.print(`${numeralWrapper.formatRAM(entry.cost).padStart(8)} | ${entry.name} (${entry.type})`);
|
terminal.print(`${numeralWrapper.formatRAM(entry.cost * numThreads).padStart(8)} | ${entry.name} (${entry.type})`);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
terminal.error(e + "");
|
terminal.error(e + "");
|
||||||
|
Loading…
Reference in New Issue
Block a user