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) {
|
} else if (bytes >= 1048576) {
|
||||||
return Math.round(bytes / 1048576) + ' MB';
|
return Math.round(bytes / 1048576) + ' MB';
|
||||||
} else if (bytes > 1024) {
|
} else if (bytes > 1024) {
|
||||||
return Math.round(bytes / 1048576) + ' KB';
|
return Math.round(bytes / 1024) + ' KB';
|
||||||
} else {
|
} else {
|
||||||
return bytes + ' Bytes';
|
return bytes + ' Bytes';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue