mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-13 17:14:05 -08:00
remove repetitive words (#12556)
Signed-off-by: cui fliter <imcusg@gmail.com>
This commit is contained in:
parent
cb93a0cbd2
commit
096ceca44f
|
@ -421,7 +421,7 @@ func addBucket(
|
||||||
// receiving histogram, but a pointer to it is returned for convenience.
|
// receiving histogram, but a pointer to it is returned for convenience.
|
||||||
//
|
//
|
||||||
// The ideal value for maxEmptyBuckets depends on circumstances. The motivation
|
// The ideal value for maxEmptyBuckets depends on circumstances. The motivation
|
||||||
// to set maxEmptyBuckets > 0 is the assumption that is is less overhead to
|
// to set maxEmptyBuckets > 0 is the assumption that is less overhead to
|
||||||
// represent very few empty buckets explicitly within one span than cutting the
|
// represent very few empty buckets explicitly within one span than cutting the
|
||||||
// one span into two to treat the empty buckets as a gap between the two spans,
|
// one span into two to treat the empty buckets as a gap between the two spans,
|
||||||
// both in terms of storage requirement as well as in terms of encoding and
|
// both in terms of storage requirement as well as in terms of encoding and
|
||||||
|
|
|
@ -214,7 +214,7 @@ func (s Sample) MarshalJSON() ([]byte, error) {
|
||||||
return json.Marshal(h)
|
return json.Marshal(h)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Vector is basically only an an alias for []Sample, but the contract is that
|
// Vector is basically only an alias for []Sample, but the contract is that
|
||||||
// in a Vector, all Samples have the same timestamp.
|
// in a Vector, all Samples have the same timestamp.
|
||||||
type Vector []Sample
|
type Vector []Sample
|
||||||
|
|
||||||
|
|
|
@ -137,7 +137,7 @@ func (oh *OOOHeadIndexReader) series(ref storage.SeriesRef, builder *labels.Scra
|
||||||
// chunks Meta the first chunk that overlaps with others.
|
// chunks Meta the first chunk that overlaps with others.
|
||||||
// Example chunks of a series: 5:(100, 200) 6:(500, 600) 7:(150, 250) 8:(550, 650)
|
// Example chunks of a series: 5:(100, 200) 6:(500, 600) 7:(150, 250) 8:(550, 650)
|
||||||
// In the example 5 overlaps with 7 and 6 overlaps with 8 so we only want to
|
// In the example 5 overlaps with 7 and 6 overlaps with 8 so we only want to
|
||||||
// to return chunk Metas for chunk 5 and chunk 6e
|
// return chunk Metas for chunk 5 and chunk 6e
|
||||||
*chks = append(*chks, tmpChks[0])
|
*chks = append(*chks, tmpChks[0])
|
||||||
maxTime := tmpChks[0].MaxTime // Tracks the maxTime of the previous "to be merged chunk".
|
maxTime := tmpChks[0].MaxTime // Tracks the maxTime of the previous "to be merged chunk".
|
||||||
for _, c := range tmpChks[1:] {
|
for _, c := range tmpChks[1:] {
|
||||||
|
|
Loading…
Reference in a new issue