Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Round target to 5 decimal points #1202

Merged
merged 1 commit into from
Jun 29, 2024
Merged

Round target to 5 decimal points #1202

merged 1 commit into from
Jun 29, 2024

Conversation

metalmatze
Copy link
Member

This gets rid of a "bug" where having 0.9990000000000001 instead of 0.999.

Fixes #1197

This gets rid of a "bug" where having `0.9990000000000001` instead of `0.999`.
@@ -1567,7 +1567,7 @@ func (s *objectiveServer) GraphDuration(ctx context.Context, req *connect.Reques

timeseries = append(timeseries,
&objectivesv1alpha1.Timeseries{
Labels: []string{fmt.Sprintf(`{quantile="p%.f"}`, 100*percentile)}, // TODO: Nicer format float
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this was an issue for a long time 😄 😅

@metalmatze metalmatze merged commit d723f4d into release-0.7 Jun 29, 2024
8 of 9 checks passed
@metalmatze metalmatze deleted the float-rounding branch June 29, 2024 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant