Skip to content

Code help in ops.go #413

@shencong1992

Description

@shencong1992

when i read code in warp/pkg/bench/ops.go, i have a question:

warp/pkg/bench/ops.go

Lines 516 to 517 in 042a9fc

bStart, bEnd := o.FilterByOp(b).TimeRange()
firstEnd, secondStart := aEnd, bEnd

firstEnd, secondStart := aEnd, bEnd why not firstEnd, secondStart := aEnd, bStart? Is it a mistake?
i see the code next:

            if bStart.Before(aStart) {
				firstEnd, secondStart = bEnd, aStart
			}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions