mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Merge branch 'hishamhm-pull-960'
This commit is contained in:
@ -35,7 +35,7 @@ void Battery_getData(double* level, ACPresence* isOnAC) {
|
||||
size_t sdlen = sizeof(struct sensordev);
|
||||
|
||||
bool found = findDevice("acpibat0", mib, &snsrdev, &sdlen);
|
||||
|
||||
|
||||
*level = -1;
|
||||
if (found) {
|
||||
/* last full capacity */
|
||||
@ -58,9 +58,9 @@ void Battery_getData(double* level, ACPresence* isOnAC) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
found = findDevice("acpiac0", mib, &snsrdev, &sdlen);
|
||||
|
||||
|
||||
*isOnAC = AC_ERROR;
|
||||
if (found) {
|
||||
mib[3] = 9;
|
||||
|
Reference in New Issue
Block a user