Support energy_now/power_now in battery_remaining
authorDavid Demelier <markand@malikania.fr>
Sun, 20 May 2018 07:42:16 +0000 (09:42 +0200)
committerAaron Marcher <me@drkhsh.at>
Sun, 20 May 2018 20:12:44 +0000 (22:12 +0200)
commitf386a03a20ca3de30f761dba52d9d7196e3544e4
tree21520a6ab6e6f49801d6533e19afc728fbeccfc0
parent1cd8a7b5109311e03fe9de2372c7adc483445db7
Support energy_now/power_now in battery_remaining

On some laptops (mostly thinkpads), the remaining time may be
expressed in µWh using energy_now and power_now files rather than µAh
for charge_now and current_now.

Add pick function to conditionally select appropriate one.
components/battery.c