mirror of
https://github.com/prometheus/prometheus
synced 2024-12-26 16:43:21 +00:00
bug fix
This commit is contained in:
parent
7a3c348f83
commit
ff038a4a39
File diff suppressed because one or more lines are too long
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user