diff -u torsmo-0.18/linux.c torsmo-0.18patched/linux.c --- torsmo-0.18/linux.c 2004-12-21 22:20:07.000000000 +0100 +++ torsmo-0.18patched/linux.c 2005-07-07 00:39:55.000000000 +0200 @@ -712,6 +712,14 @@ sprintf(last_battery_str, "discharging %d%%", remaining_capacity * 100 / acpi_last_full); } + /* charged */ + else if (strcmp(charging_state, "charged") == 0) { + if (acpi_last_full != 0 && remaining_capacity != acpi_last_full) + sprintf(last_battery_str, "charged %d%%", + remaining_capacity * 100 / acpi_last_full); + else + strcpy(last_battery_str, "charged"); + } /* unknown, probably full / AC */ else { if (acpi_last_full != 0 && remaining_capacity != acpi_last_full)