svartalf / rust-battery

Rust crate providing cross-platform information about the notebook batteries.
https://crates.io/crates/battery
Apache License 2.0
354 stars 40 forks source link

Battery rate graph should be in Watts instead of Wh #9

Closed jherman3 closed 5 years ago

jherman3 commented 5 years ago

Discharge rate is a unit of power, watt-hours are energy. The energy_rate() method returns mW so it looks like the CLI graph is using the wrong units.

svartalf commented 5 years ago

And done!