mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
chunks.Reader
: Fix typo in ChunkOrIterable doc string.
Also fix comment typo in `FloatHistogram.Sub`. Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
parent
cef8aca8e8
commit
237bfea46b
|
@ -303,7 +303,7 @@ func (h *FloatHistogram) Sub(other *FloatHistogram) *FloatHistogram {
|
||||||
)
|
)
|
||||||
|
|
||||||
if other.Schema < h.Schema {
|
if other.Schema < h.Schema {
|
||||||
panic(fmt.Errorf("cannot subtract histigram with schema %d to %d", other.Schema, h.Schema))
|
panic(fmt.Errorf("cannot subtract histogram with schema %d to %d", other.Schema, h.Schema))
|
||||||
} else if other.Schema > h.Schema {
|
} else if other.Schema > h.Schema {
|
||||||
otherPositiveSpans, otherPositiveBuckets = reduceResolution(otherPositiveSpans, otherPositiveBuckets, other.Schema, h.Schema, false, false)
|
otherPositiveSpans, otherPositiveBuckets = reduceResolution(otherPositiveSpans, otherPositiveBuckets, other.Schema, h.Schema, false, false)
|
||||||
otherNegativeSpans, otherNegativeBuckets = reduceResolution(otherNegativeSpans, otherNegativeBuckets, other.Schema, h.Schema, false, false)
|
otherNegativeSpans, otherNegativeBuckets = reduceResolution(otherNegativeSpans, otherNegativeBuckets, other.Schema, h.Schema, false, false)
|
||||||
|
|
|
@ -671,7 +671,7 @@ func (s *Reader) Size() int64 {
|
||||||
return s.size
|
return s.size
|
||||||
}
|
}
|
||||||
|
|
||||||
// Chunk returns a chunk from a given reference.
|
// ChunkOrIterable returns a chunk from a given reference.
|
||||||
func (s *Reader) ChunkOrIterable(meta Meta) (chunkenc.Chunk, chunkenc.Iterable, error) {
|
func (s *Reader) ChunkOrIterable(meta Meta) (chunkenc.Chunk, chunkenc.Iterable, error) {
|
||||||
sgmIndex, chkStart := BlockChunkRef(meta.Ref).Unpack()
|
sgmIndex, chkStart := BlockChunkRef(meta.Ref).Unpack()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue