mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Fix #2965
We would overscan when hitting a value directly, interspersed with samples in between timestamps. Apparently, that happens rarely enough that it was only noticed recently.
This commit is contained in:
parent
c06292af2f
commit
ea5e7eafde
|
@ -1040,7 +1040,7 @@ func (it *varbitChunkIterator) FindAtOrBefore(t model.Time) bool {
|
|||
prevT = model.Earliest
|
||||
prevV model.SampleValue
|
||||
)
|
||||
for it.Scan() && t.After(it.t) {
|
||||
for it.Scan() && !t.Before(it.t) {
|
||||
prevT = it.t
|
||||
prevV = it.v
|
||||
// TODO(beorn7): If we are in a repeat, we could iterate forward
|
||||
|
|
Loading…
Reference in a new issue