mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-28 04:02:21 -04:00
Reduce size of first st stored a little
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
This commit is contained in:
parent
e777d4077c
commit
59bd0a2a30
1 changed files with 2 additions and 2 deletions
|
|
@ -327,7 +327,7 @@ func (a *xorOptSTAppender) Append(st, t int64, v float64) {
|
|||
a.b.writeBits(math.Float64bits(v), 64)
|
||||
|
||||
// Write ST.
|
||||
for _, b := range buf[:binary.PutVarint(buf, st)] {
|
||||
for _, b := range buf[:binary.PutVarint(buf, t-st)] {
|
||||
a.b.writeByte(b)
|
||||
}
|
||||
a.firstSTKnown = true
|
||||
|
|
@ -508,7 +508,7 @@ func (it *xorOptSTtIterator) Next() ValueType {
|
|||
if err != nil {
|
||||
return it.retErr(err)
|
||||
}
|
||||
it.st = st
|
||||
it.st = t - st
|
||||
}
|
||||
|
||||
it.numRead++
|
||||
|
|
|
|||
Loading…
Reference in a new issue