mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-28 01:28:30 +00:00
Fixed incorrect ACPI battery percentage (using last known full capacity instead of designed capacity)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@895 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
3bc35afa30
commit
43f30219e9
@ -1478,7 +1478,7 @@ int get_battery_perct(const char *bat)
|
|||||||
char b[256];
|
char b[256];
|
||||||
if (fgets(b, 256, fp) == NULL)
|
if (fgets(b, 256, fp) == NULL)
|
||||||
break;
|
break;
|
||||||
if (sscanf(b, "design capacity: %d", &acpi_design_capacity[idx]) != 0) {
|
if (sscanf(b, "last full capacity: %d", &acpi_design_capacity[idx]) != 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user