1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-26 08:38:26 +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:
Toni Spets 2007-08-07 06:17:25 +00:00
parent 3bc35afa30
commit 43f30219e9

View File

@ -1478,7 +1478,7 @@ int get_battery_perct(const char *bat)
char b[256];
if (fgets(b, 256, fp) == NULL)
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;
}
}