This commit is contained in:
Christof Schulze 2018-04-16 07:57:00 +00:00 committed by GitHub
commit b9655da777
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -39,6 +39,9 @@
function prettyPrefix(prefixes, step, d) {
var prefix = 0;
if (d === undefined)
return "- ";
while (d > step && prefix < prefixes.length - 1) {
d /= step;
prefix++;