mirror of
https://github.com/xzeldon/htop.git
synced 2025-01-31 00:57:24 +03:00
1e94b92226
Not all batteries entries in /sys/class/power_supply start with either BAT or AC, but might have device specific names, e.g. CMB1. Detect the types of those entries and parse them accordingly. Closes: #881 Fixes: 3e70de64 ("Code clean up for reading battery info")