From 0d8e11481cac607808144cf86bb55c2e31ce1bf5 Mon Sep 17 00:00:00 2001 From: Matthias Loibl Date: Tue, 13 Dec 2022 22:42:31 +0100 Subject: [PATCH] ui/src/components: Use toFixed in RequestsGraph Closes #534 --- ui/src/components/graphs/RequestsGraph.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/graphs/RequestsGraph.tsx b/ui/src/components/graphs/RequestsGraph.tsx index 67dafe7b3..13db1e498 100644 --- a/ui/src/components/graphs/RequestsGraph.tsx +++ b/ui/src/components/graphs/RequestsGraph.tsx @@ -139,7 +139,7 @@ const RequestsGraph = ({ label: parseLabelValue(label), stroke: `#${labelColor(pickedColors, label)}`, gaps: seriesGaps(from / 1000, to / 1000), - value: (u, v) => (v == null ? '-' : `${v.toPrecision(2)}req/s`), + value: (u, v) => (v == null ? '-' : `${v.toFixed(2)}req/s`), } }), ],