enkore / i3pystatus

A complete replacement for i3status
https://i3pystatus.readthedocs.io/
MIT License
445 stars 188 forks source link

added absolute value to handle negative CURRENT_NOW & test case #730

Closed lucible closed 5 years ago

lucible commented 5 years ago

I've resolved issue #729 by adding an absolute value check to the CURRENT_NOW in BatteryCharge.consumption() so that a positive value is returned from a negative input.