mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
app/vmselect/promql: remove unused func keepLastValue
; updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/69
This commit is contained in:
parent
7aadec8e3c
commit
973e4b5b76
1 changed files with 0 additions and 7 deletions
|
@ -394,13 +394,6 @@ func runningAvg(a, b float64, idx int) float64 {
|
||||||
return a + (b-a)/float64(idx+1)
|
return a + (b-a)/float64(idx+1)
|
||||||
}
|
}
|
||||||
|
|
||||||
func keepLastValue(a, b float64, idx int) float64 {
|
|
||||||
if math.IsNaN(b) {
|
|
||||||
return a
|
|
||||||
}
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
func skipLeadingNaNs(values []float64) []float64 {
|
func skipLeadingNaNs(values []float64) []float64 {
|
||||||
i := 0
|
i := 0
|
||||||
for i < len(values) && math.IsNaN(values[i]) {
|
for i < len(values) && math.IsNaN(values[i]) {
|
||||||
|
|
Loading…
Reference in a new issue