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

node: optick: fix capture output with multiple outputs #48

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

michaelolbrich
Copy link
Contributor

The raw events are lists with timestamps and state per input. The output contains the state of all the outputs for each timstamp.

The lists must be merged and sorted before adding adding the state of the other inputs for each timestamp. Otherwise an old state value is used and the output is incorrect.

Copy link
Member

@hnez hnez left a comment

Choose a reason for hiding this comment

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

Hi, you have a duplicate adding in your commit message (before adding adding the state) (it would be great if GitHub would allow commenting on the commit message).

If you choose to fix that, it would be great if you could rebase on top of origin/master to fix the codespell issue that was fixed with #49.

But I do not insist on that. The logic looks valid to me and from my point of view this can be merged as-is,

The raw events are lists with timestamps and state per input.
The output contains the state of all the outputs for each timstamp.

The lists must be merged and sorted before adding the state of the other
inputs for each timestamp. Otherwise an old state value is used and the
output is incorrect.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
@michaelolbrich
Copy link
Contributor Author

Commit message fixed and rebased.

@hnez
Copy link
Member

hnez commented Jun 25, 2024

Great, thanks!

@hnez hnez merged commit 30f3761 into linux-automation:master Jun 25, 2024
6 checks passed
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.

2 participants