B:BD[
3.5232] → [
3.5232:5398]
// findSegment finds a segment matching the time range using floor/ceil matching
func findSegment(segments []*utils.Segment, startTime, endTime int) *utils.Segment {
// findSegment finds a segment matching the time range using floor/ceil matching.
// It also checks that the segment contains a label with the specified filter,
// so that duplicate segments (same time range, different filters) are resolved correctly.
func findSegment(segments []*utils.Segment, startTime, endTime int, filter string) *utils.Segment {