admin: don't allow excessive precision in humanized strings.

Change-Id: Ia5e4af2618c174c5eff3696bf36c8b4fbe0a94c2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92230
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
This commit is contained in:
Michael Meeks 2020-04-14 22:09:14 +01:00
parent ef25b5abc9
commit 26632c2cf4

View file

@ -16,7 +16,7 @@ var Util = Base.extend({
kbytes /= unit;
}
return kbytes + ' ' + units[i];
return kbytes.toFixed(1) + ' ' + units[i];
},
humanizeSecs: function(secs) {