Skip to content

Commit

Permalink
Change MB to Kb
Browse files Browse the repository at this point in the history
  • Loading branch information
yamiteru committed Mar 26, 2023
1 parent 8e5bff7 commit 567eea1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modes/terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export async function useTerminal() {
const cpuCycles = cpu.cycles.toLocaleString();

const isRamZero = ram.median === 0;
const mb = (ram.median | 0).toLocaleString();
const kb = (ram.median | 0).toLocaleString();
const ramMin = (isRamZero ? 0 : ram.min / ram.median)
.toPrecision(1)
.toLocaleString();
Expand All @@ -93,7 +93,7 @@ export async function useTerminal() {
writeLine(`${bold(name)} ${blue(ops)} op/s ${cpuSecondaryInfo}`);
newLine();
writeLine(
`${"".padEnd(longestBenchmarkName)} ${cyan(mb)} MB ${ramSecondaryInfo}`,
`${"".padEnd(longestBenchmarkName)} ${cyan(kb)} Kb ${ramSecondaryInfo}`,
);
newLine();
});
Expand Down

0 comments on commit 567eea1

Please sign in to comment.