Change Mo to MB

This commit is contained in:
dev
2025-06-14 18:26:02 +02:00
parent ededbb3e2a
commit 8400f1c3f9
+1 -1
View File
@@ -53,7 +53,7 @@ function slideUp(element, duration = 400) {
function formatBytes(bytes) {
if (typeof bytes !== "number" || isNaN(bytes)) return bytes;
const units = ["o", "Ko", "Mo", "Go", "To", "Po"];
const units = ["B", "KB", "MB", "GB", "TB", "PB"];
let i = 0;
while (bytes >= 1024 && i < units.length - 1) {
bytes /= 1024;