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

Fix wrong PerfData normalization #9807

Closed
wants to merge 1 commit into from
Closed

Fix wrong PerfData normalization #9807

wants to merge 1 commit into from

Conversation

Welrub
Copy link

@Welrub Welrub commented Jun 27, 2023

refs #9634

@cla-bot
Copy link

cla-bot bot commented Jun 27, 2023

Thank you for your pull request. Before we can look at it, you'll need to sign a Contributor License Agreement (CLA).

Please follow instructions at https://icinga.com/company/contributor-agreement to sign the CLA.

After that, please reply here with a comment and we'll verify.

Contributors that have not signed yet: @Welrub

  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Please contact us if you think this is the case.

  • If you signed the CLA as a corporation, your GitHub username may not have been submitted to us. Please reach out to the responsible person in your organization.

@icinga-probot icinga-probot bot added bug Something isn't working good first issue Good for newcomers labels Jun 27, 2023
@Welrub
Copy link
Author

Welrub commented Jun 27, 2023

done

@bobapple
Copy link
Member

@cla-bot check

@cla-bot cla-bot bot added the cla/signed label Jun 27, 2023
@julianbrost julianbrost requested a review from a team June 27, 2023 13:15
@Welrub
Copy link
Author

Welrub commented Jun 27, 2023 via email

Copy link
Contributor

@julianbrost julianbrost left a comment

Choose a reason for hiding this comment

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

First of all, thanks for you interest in contributing to Icinga.

This change makes the test cases fail as it will always render all trailing ;, even if they aren't needed. You can find these tests in test/icinga-perfdata.cpp. I think it would be nicer if the returned string would be kept minimal, i.e. remove ; at the end if it's not required (something the old code tried, but not quite correctly).

It would also be nice if you could add a test case for the problem you're fixing here. (Note: if you're adding an entirely new test function, it has to be added to test/CMakeLists.txt as well.)

@Welrub Welrub closed this by deleting the head repository Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cla/signed good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants