From 4756a52278097b7460cab8e59aeda93142630183 Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Wed, 25 Jan 2023 09:59:38 +0100 Subject: [PATCH] fix filesize calculation for small files --- public/scripts/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/ui.js b/public/scripts/ui.js index 198ad52..94e8c98 100644 --- a/public/scripts/ui.js +++ b/public/scripts/ui.js @@ -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'; }