hishamhm / htop

htop is an interactive text-mode process viewer for Unix systems. It aims to be a better 'top'.
GNU General Public License v2.0
5.84k stars 581 forks source link

Linux: fixes sysfs battery discovery #946

Open smattie opened 5 years ago

smattie commented 5 years ago

Removes the assumption that batteries are found in /sys/class/power_supply/BAT?/ and instead reads from /sys/class/power_supply/*/type

natoscott commented 4 years ago

Merged here: htop-dev/htop@cdff8ae