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