diff --git a/package/gluon-status-page/src/js/lib/gui/statistics.js b/package/gluon-status-page/src/js/lib/gui/statistics.js index 2f3e6e27..de14072d 100644 --- a/package/gluon-status-page/src/js/lib/gui/statistics.js +++ b/package/gluon-status-page/src/js/lib/gui/statistics.js @@ -184,6 +184,10 @@ define(["lib/helper"], function (Helper) { function prettyPrefix(prefixes, step, d) { var prefix = 0 + if (d == undefined) { + d = 0 + } + while (d > step && prefix < prefixes.length - 1) { d /= step prefix++