gluon-status-page: work around js error when printing undefined numbers
This commit is contained in:
parent
ad19b82d7c
commit
0606cdf7c2
@ -184,6 +184,10 @@ define(["lib/helper"], function (Helper) {
|
|||||||
function prettyPrefix(prefixes, step, d) {
|
function prettyPrefix(prefixes, step, d) {
|
||||||
var prefix = 0
|
var prefix = 0
|
||||||
|
|
||||||
|
if (d == undefined) {
|
||||||
|
d = 0
|
||||||
|
}
|
||||||
|
|
||||||
while (d > step && prefix < prefixes.length - 1) {
|
while (d > step && prefix < prefixes.length - 1) {
|
||||||
d /= step
|
d /= step
|
||||||
prefix++
|
prefix++
|
||||||
|
Loading…
Reference in New Issue
Block a user