mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-13 06:47:28 -08:00
parent
1545842704
commit
7158675aa8
|
@ -173,7 +173,8 @@ func instantValue(ev *evaluator, arg Expr, isRate bool) Value {
|
||||||
|
|
||||||
sampledInterval := lastSample.T - previousSample.T
|
sampledInterval := lastSample.T - previousSample.T
|
||||||
if sampledInterval == 0 {
|
if sampledInterval == 0 {
|
||||||
// Avoid dividing by 0.float64
|
// Avoid dividing by 0.
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if isRate {
|
if isRate {
|
||||||
|
|
Loading…
Reference in a new issue