Admin: expand humanization for immensely long running servers.

Change-Id: I8fb1176cfe1ac4f9a1a8549777adbf6cbf7e69a8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/93421
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
This commit is contained in:
Michael Meeks 2020-05-04 14:53:35 +01:00
parent 8aa9b37b86
commit b976b48dba

View file

@ -11,7 +11,7 @@ var Util = Base.extend({
humanizeMem: function (kbytes) {
var unit = 1000;
var units = [_('kB'), _('MB'), _('GB'), _('TB')];
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;
}