Skip to content

Commit fca9e11

Browse files
committed
Fix incorrect conversion from bytes to kilobytes
1 parent 3c4ef15 commit fca9e11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etc/js/components/pages/entities/entities-overview.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ function formatBytes(bytes) {
327327
return "";
328328
}
329329
if (bytes === 0) return '0 B';
330-
const k = 1024;
330+
const k = 1000;
331331
const sizes = ['B', 'KB', 'MB', 'GB'];
332332
const i = Math.floor(Math.log(bytes) / Math.log(k));
333333
return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i];

0 commit comments

Comments
 (0)