Merge pull request #587 from prometheus/beorn7/chunk-encoding

Actually use double-delta encoding for transcoding. :-o
pull/588/head
Björn Rabenstein 2015-03-11 17:18:57 +01:00
commit afa7375d36
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ func (c doubleDeltaEncodedChunk) add(s *metric.SamplePair) []chunk {
if ntb > tb || nvb > vb {
ntb = max(ntb, tb)
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)