chore(deps): update dependency @biomejs/biome to v2.2.0 (#934)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Uruk <contact@uruk.dev>
Co-authored-by: Gauvain <68083474+Gauvino@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2025-08-18 23:00:33 +02:00
committed by GitHub
parent 100d7e0830
commit a146fc8810
6 changed files with 16 additions and 12 deletions

View File

@@ -5,6 +5,7 @@ export const formatBitrate = (bitrate?: number | null) => {
if (bitrate === 0) return "0 bps";
const i = Number.parseInt(
Math.floor(Math.log(bitrate) / Math.log(1000)).toString(),
10,
);
return `${Math.round((bitrate / 1000 ** i) * 100) / 100} ${sizes[i]}`;
};