mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-25 15:25:45 +00:00
Linux: restore battery state with numbered AC's
This commit is contained in:
parent
3e70de64b3
commit
4374a267be
@ -765,7 +765,7 @@ static void Platform_Battery_getSysData(double* percent, ACPresence* isOnAC) {
|
||||
if (!now && full && !isnan(capacityLevel))
|
||||
totalRemain += capacityLevel * fullCharge;
|
||||
|
||||
} else if (String_eq(entryName, "AC")) {
|
||||
} else if (String_startsWith(entryName, "AC")) {
|
||||
char buffer[2] = {0};
|
||||
if (*isOnAC != AC_ERROR)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user