Mark range op as consumed if it receives no data points in range.

This commit is contained in:
Julius Volz 2013-03-22 11:50:02 +01:00
parent 8e4c5b0cea
commit a33d2726bc

View file

@ -227,6 +227,7 @@ func (g *getValuesAlongRangeOp) ExtractSamples(in []model.SamplePair) (out []mod
return in[i].Timestamp.After(g.through)
})
if lastIdx == firstIdx {
g.from = g.through.Add(1)
return
}