mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
Additional greediness.
This commit is contained in:
parent
b00ca7e422
commit
5a71814778
|
@ -539,7 +539,7 @@ func optimizeTimeGroup(group ops) (out ops) {
|
||||||
} else if containsRange && containsInterval {
|
} else if containsRange && containsInterval {
|
||||||
out = append(out, greediestRange)
|
out = append(out, greediestRange)
|
||||||
for _, op := range greediestIntervals {
|
for _, op := range greediestIntervals {
|
||||||
if !op.Through().After(greediestRange.Through()) {
|
if !op.GreedierThan(greediestRange) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue