Skip to content

Fix PerfdataValue Counter Parsing#10432

Merged
yhabteab merged 1 commit intomasterfrom
perfdata-parse-counter-value
May 12, 2025
Merged

Fix PerfdataValue Counter Parsing#10432
yhabteab merged 1 commit intomasterfrom
perfdata-parse-counter-value

Conversation

@oxzi
Copy link
Copy Markdown
Member

@oxzi oxzi commented May 9, 2025

Ensure that the counter unit of measurement, "c", is parsed correctly for performance data values again.

A prior refactoring in 720a88c changed the parsing logic, resulting in an incorrect behavior for counter units. By passing the raw input into the l_CsUoMs map first, the "c" UoM is removed. Moving the explicit counter check before passing the raw unit into the map resolves this issue.

Fixes #9540.

@oxzi oxzi added this to the 2.15.0 milestone May 9, 2025
@oxzi oxzi requested a review from julianbrost May 9, 2025 07:21
@oxzi oxzi added bug Something isn't working area/checks Check execution and results labels May 9, 2025
@cla-bot cla-bot bot added the cla/signed label May 9, 2025
Ensure that the counter unit of measurement, "c", is parsed correctly
for performance data values again.

A prior refactoring in 720a88c changed
the parsing logic, resulting in an incorrect behavior for counter units.
By passing the raw input into the l_CsUoMs map first, the "c" UoM is
removed. Moving the explicit counter check before passing the raw unit
into the map resolves this issue.

Fixes #9540.
@oxzi oxzi force-pushed the perfdata-parse-counter-value branch from e09bef3 to 7e65a60 Compare May 12, 2025 14:34
@oxzi oxzi requested a review from yhabteab May 12, 2025 14:34
@yhabteab yhabteab removed the request for review from julianbrost May 12, 2025 14:48
@yhabteab yhabteab enabled auto-merge May 12, 2025 14:49
@yhabteab yhabteab merged commit 79e5462 into master May 12, 2025
26 checks passed
@yhabteab yhabteab deleted the perfdata-parse-counter-value branch May 12, 2025 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/checks Check execution and results bug Something isn't working cla/signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Perfdata counter (c suffix) is ignored

3 participants