Lines 712-717
Link Here
|
712 |
sprintf(last_battery_str, "discharging %d%%", |
712 |
sprintf(last_battery_str, "discharging %d%%", |
713 |
remaining_capacity * 100 / acpi_last_full); |
713 |
remaining_capacity * 100 / acpi_last_full); |
714 |
} |
714 |
} |
|
|
715 |
/* charged */ |
716 |
else if (strcmp(charging_state, "charged") == 0) { |
717 |
if (acpi_last_full != 0 && remaining_capacity != acpi_last_full) |
718 |
sprintf(last_battery_str, "charged %d%%", |
719 |
remaining_capacity * 100 / acpi_last_full); |
720 |
else |
721 |
strcpy(last_battery_str, "charged"); |
722 |
} |
715 |
/* unknown, probably full / AC */ |
723 |
/* unknown, probably full / AC */ |
716 |
else { |
724 |
else { |
717 |
if (acpi_last_full != 0 && remaining_capacity != acpi_last_full) |
725 |
if (acpi_last_full != 0 && remaining_capacity != acpi_last_full) |