Skip to content

Median run is the upper middle for even counts, not the median #23

Description

@royalpinto007

Problem

With an even run count the "median run" row shows the upper middle (sorted[n//2]), e.g. [10, 20] reports 20 s instead of 15 s.

Where

agentrace/cli.py (median row, no averaging of middle pair).

Acceptance

Add a failing test first with durations [10, 20] asserting 15 s. Then fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions