Change detailed mem format

This commit is contained in:
Martin Fournier 2022-01-05 18:04:26 -05:00
parent 4b06bdd89c
commit b345da9dee

@ -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(`${entry.type.padEnd(5, ' ')} | ${entry.name} (${numeralWrapper.formatRAM(entry.cost)})`); terminal.print(`${numeralWrapper.formatRAM(entry.cost).padStart(8)} | ${entry.name} (${entry.type})`);
} }
} catch (e) { } catch (e) {
terminal.error(e + ""); terminal.error(e + "");