mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-09-29 11:22:25 +02:00
ExecutorMetrics.get_stats picked the p95 element with int(n * 0.95), which collapses to the last index (the maximum) for any batch of 20 or fewer requests, so the reported p95 was actually the worst-case latency for typical scan batches. Use ceil(n * 0.95) - 1, the standard nearest-rank index.