gluon-status-page: when prettifying undefined numbers, show - instead of NaN
This commit is contained in:
parent
62943f9ca1
commit
2465a103f6
File diff suppressed because one or more lines are too long
@ -39,6 +39,9 @@
|
|||||||
function prettyPrefix(prefixes, step, d) {
|
function prettyPrefix(prefixes, step, d) {
|
||||||
var prefix = 0;
|
var prefix = 0;
|
||||||
|
|
||||||
|
if (d === undefined)
|
||||||
|
return "- ";
|
||||||
|
|
||||||
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