diff --git a/client/src/Components/common/charts/HistogramResponseTime.tsx b/client/src/Components/common/charts/HistogramResponseTime.tsx index ba2bc12ff..d9485318a 100644 --- a/client/src/Components/common/charts/HistogramResponseTime.tsx +++ b/client/src/Components/common/charts/HistogramResponseTime.tsx @@ -35,7 +35,7 @@ const calculateResponseTimeStats = (checks: CheckSnapshot[]): ResponseTimeStats } const responseTimes = validChecks.map((check) => check.originalResponseTime); - const max = Math.max(...responseTimes); + const max = Math.round(Math.max(...responseTimes)); const avg = Math.round( responseTimes.reduce((sum, time) => sum + time, 0) / responseTimes.length ); @@ -73,14 +73,20 @@ export const HistogramResponseTime = ({ - + {t("common.charts.histogram.avg", { value: stats.avg })} - + {t("common.charts.histogram.max", { value: stats.max })}