Skip to content

Commit

Permalink
1 MB = 1024 kB, not 1000 kB
Browse files Browse the repository at this point in the history
Signed-off-by: Andras Timar <[email protected]>
Change-Id: I8be720464fdf94bff89f567aa879c0676f901fb5
  • Loading branch information
timar authored and vmiklos committed Jan 27, 2025
1 parent 354f012 commit c79e7cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser/admin/src/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var Util = Base.extend({
}, { // class interface

humanizeMem: function (kbytes) {
var unit = 1000;
var unit = 1024;
var units = [_('kB'), _('MB'), _('GB'), _('TB'), _('PB'), _('EB'), _('ZB'), _('YB'), _('BB')];
for (var i = 0; Math.abs(kbytes) >= unit && i < units.length; i++) {
kbytes /= unit;
Expand Down

0 comments on commit c79e7cd

Please sign in to comment.