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:
parent
8aa9b37b86
commit
b976b48dba
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ var Util = Base.extend({
|
||||||
|
|
||||||
humanizeMem: function (kbytes) {
|
humanizeMem: function (kbytes) {
|
||||||
var unit = 1000;
|
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++) {
|
for (var i = 0; Math.abs(kbytes) >= unit && i < units.length; i++) {
|
||||||
kbytes /= unit;
|
kbytes /= unit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue