mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-14 21:14:35 +03:00
Linux: restore battery state with numbered AC's
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user