Skip to content

Commit

Permalink
Merge pull request #552 from pyrra-dev/requests-graph-toFixed
Browse files Browse the repository at this point in the history
ui/src/components: Use toFixed in RequestsGraph
  • Loading branch information
metalmatze authored Dec 14, 2022
2 parents 68d9851 + 0d8e114 commit 61eb388
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 61eb388

Please sign in to comment.