mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-28 15:09:39 -08:00
commit
fdea26e359
|
@ -137,7 +137,7 @@ func rateImpl(timestamp time.Time, view *viewAdapter, args []Node) interface{} {
|
||||||
// MatrixLiteral exists). Find a better way of getting the duration of a
|
// MatrixLiteral exists). Find a better way of getting the duration of a
|
||||||
// matrix, such as looking at the samples themselves.
|
// matrix, such as looking at the samples themselves.
|
||||||
interval := args[0].(*MatrixLiteral).interval
|
interval := args[0].(*MatrixLiteral).interval
|
||||||
for i, _ := range vector {
|
for i := range vector {
|
||||||
vector[i].Value /= model.SampleValue(interval / time.Second)
|
vector[i].Value /= model.SampleValue(interval / time.Second)
|
||||||
}
|
}
|
||||||
return vector
|
return vector
|
||||||
|
|
Loading…
Reference in a new issue