Skip to content

Commit

Permalink
fix counting minimal p75 value for all metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
gotomi committed Sep 11, 2024
1 parent e23759a commit b965d65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/UrlsByMetric.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
data.metrics.forEach((item) => {
const v = Object.values(item);
const allMin = v
.map((item) => (typeof item === "object" ? item.histogram[0] : 2000))
.map((item) => (typeof item === "object" && !!item.histogram[0] ? item.histogram[0] : 2000))
.reduce((a, b) => Math.min(a, b));
minimal[item.url] = allMin;
});
Expand Down

0 comments on commit b965d65

Please sign in to comment.