Multiply ram cost by threads

This commit is contained in:
Martin Fournier 2022-01-05 18:32:29 -05:00
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 + "");