mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-21 15:26:17 -04:00
fix filesize calculation for small files
This commit is contained in:
parent
437aa5976e
commit
4756a52278
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue