mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-17 23:02:15 +00:00
fix filesize calculation for small files
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user