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:
parent
ef25b5abc9
commit
26632c2cf4
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ var Util = Base.extend({
|
||||||
kbytes /= unit;
|
kbytes /= unit;
|
||||||
}
|
}
|
||||||
|
|
||||||
return kbytes + ' ' + units[i];
|
return kbytes.toFixed(1) + ' ' + units[i];
|
||||||
},
|
},
|
||||||
|
|
||||||
humanizeSecs: function(secs) {
|
humanizeSecs: function(secs) {
|
||||||
|
|
Loading…
Reference in a new issue