This commit is contained in:
Takahito Yamatoya 2017-09-17 00:20:39 +09:00
parent 7a3c348f83
commit ff038a4a39
2 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -748,11 +748,11 @@ Prometheus.Graph.prototype.formatKMBT = function(y) {
} else if (abs_y === 0) {
return y
} else if (abs_y <= 1e-9) {
return (y / 1e-6).toFixed(3) + "n"
return (y / 1e-9).toFixed(3) + "n"
} else if (abs_y <= 1e-6) {
return (y / 1e-6).toFixed(3) + "m"
return (y / 1e-6).toFixed(3) + "µ"
} else if (abs_y <=1e-3) {
return (y / 1e-3).toFixed(3) + "µ"
return (y / 1e-3).toFixed(3) + "m"
} else if (abs_y <= 1) {
return y.toFixed(3)
}