mirror of
https://github.com/xzeldon/htop.git
synced 2025-04-08 03:57:08 +03: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))
|
if (!now && full && !isnan(capacityLevel))
|
||||||
totalRemain += capacityLevel * fullCharge;
|
totalRemain += capacityLevel * fullCharge;
|
||||||
|
|
||||||
} else if (String_eq(entryName, "AC")) {
|
} else if (String_startsWith(entryName, "AC")) {
|
||||||
char buffer[2] = {0};
|
char buffer[2] = {0};
|
||||||
if (*isOnAC != AC_ERROR)
|
if (*isOnAC != AC_ERROR)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user