mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -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 {
|
||||
out = append(out, greediestRange)
|
||||
for _, op := range greediestIntervals {
|
||||
if !op.Through().After(greediestRange.Through()) {
|
||||
if !op.GreedierThan(greediestRange) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue