fix filesize calculation for small files

This commit is contained in:
schlagmichdoch 2023-01-25 09:59:38 +01:00
parent 437aa5976e
commit 4756a52278

View file

@ -456,7 +456,7 @@ class ReceiveDialog extends Dialog {
} else if (bytes >= 1048576) {
return Math.round(bytes / 1048576) + ' MB';
} else if (bytes > 1024) {
return Math.round(bytes / 1048576) + ' KB';
return Math.round(bytes / 1024) + ' KB';
} else {
return bytes + ' Bytes';
}