denormalize resposne times

This commit is contained in:
Alex Holliday committed 2026-07-29 10:57:20 -07:00
1 parent 81aab35961
commit e3075318b6
10 files changed
+31 -92

No files matched your search

@@ -0,0 +1,6 @@
export const computeYAxisCap = (values: number[]): number | undefined => {
const sorted = values.slice().sort((a, b) => a - b);
if (sorted.length < 2) return undefined;
const p95 = sorted[Math.min(sorted.length - 1, Math.floor(sorted.length * 0.95))];
return p95 > 0 ? Math.ceil(p95 * 2) : undefined;
};