1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-18 02:55:12 +00:00
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@553 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Brenden Matthews 2006-03-07 06:39:25 +00:00
parent 4f5d0da56f
commit cbec63ada1

View File

@ -1182,12 +1182,8 @@ void get_battery_stuff(char *buf, unsigned int n, const char *bat)
/* charged */
/* thanks to Lukas Zapletal <lzap@seznam.cz> */
else if (strcmp(charging_state, "charged") == 0) {
if (acpi_last_full != 0 && remaining_capacity != acpi_last_full) {
sprintf(last_battery_str, "charged 100%");
} else {
strcpy(last_battery_str, "charged");
}
}
/* unknown, probably full / AC */
else {
if (acpi_last_full != 0