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 parsing error #75

Merged
merged 2 commits into from
Jul 23, 2024
Merged

Fix parsing error #75

merged 2 commits into from
Jul 23, 2024

Conversation

Snailed
Copy link
Collaborator

@Snailed Snailed commented Jun 26, 2024

Fixes #65 by erroring with a readable message when energy consumption cannot be reasonably inferred from logs due to mismatch in power measurements and duration measurements.

Snailed added 2 commits June 26, 2024 15:01
Currently, the parser only regards lines with
"2024-06-26 14:37:59 - Average power usage (W) for {device}: [{float}]"
but it should also regard lines without [ and ] like so
"2024-06-26 14:37:59 - Average power usage (W) for {device}: {float}"

remove redundant print statement
@Snailed Snailed merged commit c3d7238 into lfwa:dev Jul 23, 2024
6 checks passed
@Snailed Snailed deleted the fix-parsing-error branch July 23, 2024 09:44
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