mirror of https://github.com/prometheus/prometheus
Actually use double-delta encoding for transcoding. :-o
parent
d4ef509b0f
commit
853f971540
|
@ -201,7 +201,7 @@ func (c doubleDeltaEncodedChunk) add(s *metric.SamplePair) []chunk {
|
||||||
if ntb > tb || nvb > vb {
|
if ntb > tb || nvb > vb {
|
||||||
ntb = max(ntb, tb)
|
ntb = max(ntb, tb)
|
||||||
nvb = max(nvb, vb)
|
nvb = max(nvb, vb)
|
||||||
return transcodeAndAdd(newDeltaEncodedChunk(ntb, nvb, c.isInt(), cap(c)), &c, s)
|
return transcodeAndAdd(newDoubleDeltaEncodedChunk(ntb, nvb, c.isInt(), cap(c)), &c, s)
|
||||||
}
|
}
|
||||||
|
|
||||||
offset := len(c)
|
offset := len(c)
|
||||||
|
|
Loading…
Reference in New Issue