Skip to content

Fix power consumption calculation for systems missing power_now file#926

Merged
AdnanHodzic merged 1 commit intomasterfrom
fix-wattage
Feb 16, 2026
Merged

Fix power consumption calculation for systems missing power_now file#926
AdnanHodzic merged 1 commit intomasterfrom
fix-wattage

Conversation

@shadeyg56
Copy link
Collaborator

Wattage values were being incorrectly calculated if the power_now file was not found in the battery directory. Before it was just reading from the path current_now if power_now wasn't found, which just returned the current in Amps.

This should fix it so if power_now is not found, it will calculate the power draw using current and voltage instead, if possible.

@AdnanHodzic
Copy link
Owner

Great, thank you!

@AdnanHodzic AdnanHodzic merged commit a053096 into master Feb 16, 2026
4 checks passed
@shadeyg56 shadeyg56 deleted the fix-wattage branch February 16, 2026 05:42
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