Skip to content

Commit

Permalink
ui/src/components: Use toFixed in RequestsGraph
Browse files Browse the repository at this point in the history
Closes #534
  • Loading branch information
metalmatze committed Dec 13, 2022
1 parent 7bd9bb0 commit 0d8e114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/components/graphs/RequestsGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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`),
}
}),
],
Expand Down

0 comments on commit 0d8e114

Please sign in to comment.